+ 1
How can we move div Down??
3 odpowiedzi
+ 6
explain yourself
+ 5
With css...
<div id="myDiv">my div content</div>
... statically:
#myDiv {
transform:translateY(10px);
}
... animated:
#myDiv {
-webkit-animation:anim 2s alternate infinite;
animation:anim 2s alternate infinite;
}
@-webkit-keyframes anim {
from { transform:translateY(0px); }
to { transform:translateY(10px); }
}
@keyframes anim {
from { transform:translateY(0px); }
to { transform:translateY(10px); }
}
You can obviously use css transition to animate it ^^
+ 2
can you please explain what exactly you want to do??