V
V
Vladimir2016-11-23 07:30:12
css
Vladimir, 2016-11-23 07:30:12

Why is css slider not working in firefox?

There is a block, it is necessary that the background image of this block change smoothly to another, I found an article that describes the method in css.
I did everything as described in the article, the background changes perfectly, but it doesn’t want to work in ff, tell me what could be the problem?
My css

#slider{
width: 448px;
height: 251px;
margin: 0 auto;
background: url(1.jpg);
animation-name: slider;
animation-duration: 7s;
}

@keyframes slider{
0%{ background: url(1.jpg);}
33%{ background: url(2.jpg);}
66%{ background: url(3.jpg);}
}

I also set the -moz- prefix, it doesn’t fail, maybe there is some alternative way, for example, in js.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2016-11-23
@xmoonlight

-webkit- ?

A
A person from Kazakhstan, 2016-11-23
@LenovoId

the fox can't animate background-image, here's my question one to one but not the slider

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question