JSFiddle - React, Tailwind, and code Playground

HTML

<img src="http://solarpanels2green.com/images/one.gif" title='1'>
<img src="http://solarpanels2green.com/images/two.gif" title='2'>
<img src="http://solarpanels2green.com/images/three.gif" title='3'>
<img src="http://solarpanels2green.com/images/four.gif" title='4'>

JavaScript

var all = $('img'), 
        shift = Math.floor(
          (new Date().getTime()-
           new Date().getTimezoneOffset()*60000)
         /(24*3600*1000)) % all.length;
    if (shift!=0)
        all.filter(':gt('+(all.length-shift-1)+')')
           .insertBefore(all.first());