El Chat se movia solo O:
Ali Baba:
Hace unos dias estaba en este chat: https://ciberluna.com/ y estaba hablando en sala, cuando un administrador me dice: AGUANTATE!!!
yo no entendi, y de momento el chat se empezo a mover de un lado a otro, como si fuese un terremoto!!! como pudo haber hecho eso? Alguien ha hecho un algoritmo similar?
engel lex:
explicate "moverse de un lado a otro"
EFEX:
No es ningun algoritmo, es solo animacion css hay millones de ejemplos.. este es desde la pagina
Código
@-webkit-keyframes shake {
from,
to {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
10%,
30%,
50%,
70%,
90% {
-webkit-transform: translate3d(-10px, 0, 0);
transform: translate3d(-10px, 0, 0);
}
20%,
40%,
60%,
80% {
-webkit-transform: translate3d(10px, 0, 0);
transform: translate3d(10px, 0, 0);
}
}
@keyframes shake {
from,
to {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
10%,
30%,
50%,
70%,
90% {
-webkit-transform: translate3d(-10px, 0, 0);
transform: translate3d(-10px, 0, 0);
}
20%,
40%,
60%,
80% {
-webkit-transform: translate3d(10px, 0, 0);
transform: translate3d(10px, 0, 0);
}
}
.shke {
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-name: shake;
animation-name: shake;
}
dato000:
Cita de: EFEX en 5 Julio 2017, 06:41 am
No es ningun algoritmo, es solo animacion css hay millones de ejemplos.. este es desde la pagina
Código
@-webkit-keyframes shake {
from,
to {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
10%,
30%,
50%,
70%,
90% {
-webkit-transform: translate3d(-10px, 0, 0);
transform: translate3d(-10px, 0, 0);
}
20%,
40%,
60%,
80% {
-webkit-transform: translate3d(10px, 0, 0);
transform: translate3d(10px, 0, 0);
}
}
@keyframes shake {
from,
to {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
10%,
30%,
50%,
70%,
90% {
-webkit-transform: translate3d(-10px, 0, 0);
transform: translate3d(-10px, 0, 0);
}
20%,
40%,
60%,
80% {
-webkit-transform: translate3d(10px, 0, 0);
transform: translate3d(10px, 0, 0);
}
}
.shke {
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-name: shake;
animation-name: shake;
}
wow, muy bueno, supongo que hay un poco de JqueryUi haciendo el trabajo en esas ventanas, je que buen ejemplo de trollear al usuario.
Ali Baba:
yo se que era una animacion css :rolleyes: xD, pero la forma en que el administrador controlaba quien la veia o no!!!!
Navegación
[#] Página Siguiente