https://discourse.webflow.com/t/change-background-image-on-refresh/1120/12
Please refer to the above thread.
I used the code as told by @Waldo in the head section of my website and published it, but it doesn’t seem to work.
I want to obtain a random hero image each time the website refreshes, so I have used a slider, set to full screen then - disabled autoplay and added the set of images.
Then I implemented this code as told by Waldo in the settings, but I still cant get it to work. Please help.
<script> $(".mask").append($(".mask").children().sort(function () { return Math.random() - 0.5; })); </script>