I have a big div element at header and there are many text contents and some boxes in the div. and i have a big img as bg for this div, now i need to make a slideshow for this div's background :/
How can I make slideshow for a div's background image?
I researched a lot, but could not find anything :/
Thanks a lot! appreciate!
One way of doing this is to make an array of background-images:
This will just loop and loop...
This may help you - https://github.com/im4aLL/bose
But only fade transition. Good luck!
Couple of day before I have been looking for similar explanation. Answer number two was pretty good but as I can see it needs fade effect. I have accomplished that (and more). Here is the code:
I have explained it on my blog: http://blog.braovic.com/css-background-slider-and-slideshow/
Hope this helps you all. Best, Ante.
You can use the following to change the background image:
In order to create a slideshow, call it at regular intervals by using settimeout.
I too was looking for a css background element slideshow, Thanks for your input. I explored your solution with the setTimeout method, however had massive troubles with it (I'm a noob).
I've adapted peirix's solution with a setInterval alternative and came up with this;
Now I need to add a fade effect and image preloader and I'll be away. Would be interested to know if there's a tidier way to achieve this.