0

How do we make any image keep moving

How doe we make any image keep moving up and down infinite using css.

15th Jan 2022, 8:56 AM
Aman Rajput
Aman Rajput - avatar
3 odpowiedzi
+ 8
img { -webkit-animation: mover 2s infinite alternate; animation: mover 2s infinite alternate; } @-webkit-keyframes mover { 0% { transform: translateY(0); } 100% { transform: translateY(-20px); } } @keyframes mover { 0% { transform: translateY(0); } 100% { transform: translateY(-20px); } } Hope it will helps you
17th Jan 2022, 4:57 AM
Vaibhav
Vaibhav - avatar
+ 1
It is called CSS animation. The example will help you: https://code.sololearn.com/WkPgVzVkSZIe/?ref=app
15th Jan 2022, 9:25 AM
JaScript
JaScript - avatar
+ 1
https://code.sololearn.com/WSIDv0Nv40wX Transitions & Transforms https://www.sololearn.com/learning/1023 I feel confused about the parameter combinations of css animation, so I used to refer to some online css animation generators.
15th Jan 2022, 9:40 AM
FanYu
FanYu - avatar