+ 1

Can background images be animated without javascript

I tried da normal animate syntax for background images but it didn't work. I had to introduce a function from JavaScript

10th Jun 2018, 9:00 PM
kevin izuchukwu
kevin izuchukwu - avatar
4 Respuestas
+ 9
kevin izuchukwu You can animate using CSS.
10th Jun 2018, 9:07 PM
Mohammad Amir Aqeel
Mohammad Amir Aqeel - avatar
+ 3
try to use GIF . you can't change background image without javascript. but you can animate it via css. try to use animation-name and animation-duration.
10th Jun 2018, 10:15 PM
Gudratli Rufat
Gudratli Rufat - avatar
+ 1
kevin izuchukwu Can you upload your code?
11th Jun 2018, 3:44 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
0
I know, i used css, da "animate" property. It worked for other properties like width, height, color but not for background-images
10th Jun 2018, 9:09 PM
kevin izuchukwu
kevin izuchukwu - avatar