JSFiddle - React, Tailwind, and code Playground

by janjhnsn

JavaScript

$(document).ready(function() {
document.write("<h1>"+ Array(8).join(+"wat") + " Batjan!" +"</h1><img src='http://dev.ljd.dk/vertic/batjan.jpg'/>"); 
    
var batjan = function() {
    var $img = $('img');
    if($img.width() != 500) {
        $img.animate({
            height: '500',
            width: '500'
          }, 250);
    } else {
        $img.animate({
            height: '100',
            width: '100'
          }, 250);
    }
};
    
setInterval(batjan, 500);
    
});