Well for animated backgrounds, usually it's one of two things:
- A static background which is animated via animating background-position.
- A background with a gif as an image source.
For the animation tag, you will need to use @keyframes to make the actual skeleton for your animation by using percentage values to dictate what properties it will change over time.
@keyframes exampleAnimation {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
Once you have your keyframes done, you will use the actual animation tag on the element you want to animate and configure accordingly.
animate: exampleAnimation 1s forwards ease-out;