JSFiddle - React, Tailwind, and code Playground

by Shlomi

HTML

<div id="banner-load"></div>
<script>
//Add your images, we'll set the path in the next step
    var images = ['https://0.s3.envato.com/files/46803740/Preview%20Image.jpg', 'http://reshetech.co.il/what-is-my-ip/assets/images/banners/ebook-the-essentials-of-object-oriented-php.jpg'];
    
//Build the img, then do a bit of maths to randomize load and append to a div. Add a touch off css to fade them badboys in all sexy like.
    $('<img class=" class="fade-in" src="' + images[Math.floor(Math.random() * images.length)] + '">').appendTo('#banner-load');
</script>