Jay Kaes

Jay Kaes is presently working on a creative process that focuses on the interrelation of art and technology. It is about the change of human beings due to technology and its exponential growth, and the art especially reflects the human ability to deal with these changes that affect the way we see ourselves as well as our vision of the future as a society.

// Newhere jQuery(document).ready(function($) { // Array of image URLs var backgroundImages = [ 'https://st-artamsterdam.com/wp-content/uploads/2022/04/A9Rhjv48o_qt9k0z_5q8.jpg', 'https://st-artamsterdam.com/wp-content/uploads/2022/04/A9R1d2khwl_qt9k11_5q8.jpg', ]; // Function to get a random image URL function getRandomImage() { return backgroundImages[Math.floor(Math.random() * backgroundImages.length)]; } // Set random background image for sections with class 'random-bg-module' $('.random-bg-module').each(function() { var randomImageUrl = getRandomImage(); $(this).css('background-image', 'url(' + randomImageUrl + ')'); }); // If the above doesn't work, try this alternative approach $(window).load(function() { $('.random-bg-module').each(function() { var randomImageUrl = getRandomImage(); $(this).attr('style', function(i, style) { return style + 'background-image: url(' + randomImageUrl + ') !important;'; }); }); }); });