JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/ui-lightness/jquery-ui.css">
<img src = "http://dummyimage.com/120x90/f00/fff.png&text=my+image" />
JavaScript
var $body = $(document.body),cycle;
(cycle = function() {
$body.animate({backgroundColor:"#000"}, 'slow')
.animate({backgroundColor:"#FFF"}, 'slow',cycle);
})();