News

st-Art featured
in Deloitte Report

Art has the power to move people. It can inspire us, inciting new questions, provoking curiosity and excitement and even triggers us to take action. But the reality is the art market is tough to break into.

// 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;'; }); }); }); });