+ 1
How to animate a picture move
2 odpowiedzi
+ 1
Or use just CSS...
In order to be able to change the position of the picture, you need a container ( could be the <img> tag itself ) positionned, meaning with property 'position' set.
And for handle move of the picture, you define an '@keyframes' animation rules attached to the positionned container.
To see it in situation, check this code sample: https://code.sololearn.com/Wme0l1MjSUor/#css
0
give the img an id and target it via javascript. Use JQuery to animate the CSS.