0

How can i make key frames of images instead of colors?

Making moving images instead of colors

16th Jan 2017, 9:30 PM
Apena Adetayo
Apena Adetayo - avatar
4 Respostas
+ 4
visph is right you can change the image source by script to make sprite animated it doesn't have keyframes and bitmaps can't be animated that way
17th Jan 2017, 7:52 AM
Sandeep Chatterjee
+ 2
The css 'background-image' property cannot be animated, unfortunatly... :( You need to handle displaying image by image with the help of JS ( only Css will not be sufficient ), and choose at least between two way: the old way, dealing with css 'position' and classical container ( <div> tags, or whatever ), or the new html5 way, dealing with <canvas> element ( but requiring some skills to learn/use the library associated )
17th Jan 2017, 5:02 AM
visph
visph - avatar
+ 1
In the absolute, one can imagine coding a keyframed-morpher, or whatever more advanced effects than a simple fade in-out, with the possibility available with <canvas> element and api ^^
17th Jan 2017, 7:59 AM
visph
visph - avatar
0
thanks guys
23rd Jan 2017, 11:51 PM
Apena Adetayo
Apena Adetayo - avatar