Based on this answer, I managed to put an image as my icon appearing inside an INPUT control at its right edge. If I use a GIF that rotates, I'm all set. I only need to set the class on my control and it is "progressing".
input.busy {
background-image: url(...);
...
}
However... Now, I want to control the pace of the rotation, so I need to actually animate the image. I can do that as shown in this blog, which works for many, but not all, elements. And my INPUT is one of the unfortunate exceptions.
div::after {
content: "this shows";
background-image: url(...);
}
input::after {
content: "this shows not";
background-image: url(...);
}
How can I rotate (in fact, animate the rotation) of an image (let's say PNG) that will reside at the rightmost edge of an INPUT tag?
To animate anything in after you can simply use
And use, e.g.
But the problem is when we use an input. I don't know if there're a better solution but always we can create a directive
And we use like
the .css
the stackblitz