Open kmcamb opened 5 years ago
You can easily do that with JavaScript. You can set all your images in an array and pick one randomly onload for backstretch.
imagesCollection = [
'//..image1.png'
'//..image2.png'
'//..image3.png'
]
image = imagesCollection[Math.floor(Math.random() * imagesCollection.length)]
$('#hero').backstretch(image)
We'll give this a go. Thanks!
Is it possible to change the slide image randomly onload only instead of timed intervals?