JSFiddle - React, Tailwind, and code Playground

by Niklas Keller

HTML

<div class="View">some text</div>

JavaScript

var auto_refresh = setInterval(function () {
    $('.View').fadeOut('slow', function() {
        $(this).load('/echo/json/', function() {
            $(this).fadeIn('slow');
        });
    });
}, 15000); // refresh every 15000 milliseconds