JSFiddle - React, Tailwind, and code Playground

by rmurphey

JavaScript

function(newElements) { //Inf. Scroll Callback
    // My Code:
    $(".{PostID} .special").html(function(idx, oldHtml) { 
        return oldHtml.replace('{PhotoURL}', '{PhotoURLHighRes}'); 
    }); 
    
    // End of my code

    var $newElems = $(newElements).css({
        opacity: 0
    });
    $newElems.imagesLoaded(function() {

        $newElems.animate({
            opacity: 1
        });

        $container.masonry('appended', $newElems, true);
    });

}