I'd like to animate the background-position of some div with css like this:
@keyframes wave{
from{
background-position: 80% center;
}
to{
background-position: 160% center;
}
}
This is a very simple animation, but what happens if the background-position in the y axis should change dinamicly? I know of background-position-x
and y but...
Is there real support for the background-position-x
and y rules? Or are they just phantoms today?