Is there anyway that I can make an image to be animated just like how svg shapes are animated? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Is there anyway that I can make an image to be animated just like how svg shapes are animated?

Please help.

2nd Jul 2017, 7:05 AM
Kabulput
Kabulput - avatar
2 Answers
+ 6
Did you mean through use of <animation> tag or equivalent? Not directly with html tags (<animation> is specific to SVG language and could only be included inside a <svg> element), but Css provide some animation features (look at 'keyframes', 'animation' and 'transition') in a different way (compatible/usable with svg elements) and Svg can handle bitmaps (even if it's not designed for that but vector graphics, he can embed bitmap to use as textures: you can define some rectangle and load a bitmap background), so it's possible to animate them as svg shape elements ;) This code could help you to see how embed bitmaps in svg shape (here applied to svg text element ^^) https://code.sololearn.com/WOrLOi09pA1s/?ref=app
2nd Jul 2017, 7:29 AM
visph
visph - avatar
+ 5
Thanks so much.
2nd Jul 2017, 7:33 AM
Kabulput
Kabulput - avatar