WordPress.org

Ready to get started?Download WordPress

Forums

Rotating Posts
Can transition be Fade In/Fade Out? (2 posts)

  1. dougsmith
    Member
    Posted 1 year ago #

    Hi there, love the plugin and what it does. Just wondering if there is a way to modify the transition to a Fade In/Fade Out? Thank you.

    Doug

    http://wordpress.org/extend/plugins/rotating-posts/

  2. JFK.DIAZ
    Member
    Posted 6 months ago #

    Since you may be already using jQuery (most WP installations do), I edited their rotating-posts.js file.

    Looked for the line (around line 42) :

    document.getElementById('rp_post' + i).style.display = "block";

    and replace it by :

    jQuery('#rp_post' + i).fadeIn(400);

    you may want to add a callback when the fade transition is finished (in my case I wanted to resize the parent container for my responsive layout) so you can do

    jQuery('#rp_post' + i).fadeIn(400, function(){
        // add your calback here
    });

    hope it helps

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags