+ 1

How to animate a picture move

15th Feb 2017, 5:44 AM
Aswin anand cl
Aswin anand cl - avatar
2 Antworten
+ 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
15th Feb 2017, 10:12 AM
visph
visph - avatar
0
give the img an id and target it via javascript. Use JQuery to animate the CSS.
15th Feb 2017, 6:44 AM
Andre van Rensburg
Andre van Rensburg - avatar