View Css3 Change Background Image Animation
Gif. Background color background image background repeat background attachment background shorthand. Image sprite + css animation steps worked well for me.
Power Up Your Menus Using Animation With Css Creative Bloq from cdn.mos.cms.futurecdn.net
It is not possible to change the background image of a dom element with animate (misleading title, sorry about that :p), so here is a pretty nice workaround that will get you that fade in/fade out effect you always wanted when changing images. It has a background image indexartbg1, which are some abstract lines in grey, and background of the image is transparent. I see you have mentioned about the position in the last.
We'll create different we'll create different image transitions and also make a title appear using css animations.
Use css keyframes to define two states, one with top image transparent, one with it opaque. This works by first reducing the opacity of the current image. To animate images changing immediately from one to the next, using this technique: Animation property is use for handle animation of html elements.