WordPress.org

Support

Support » Plugins and Hacks » Rotating Posts » Way to add a transition effect?

Way to add a transition effect?

Viewing 4 replies - 1 through 4 (of 4 total)
  • jgay … do you still need this with fade effect ? i made a version of this plugin to use jQuery Cycle Plugin for fading/transition effects.

    I do! Where can I find your version?

    I’m also looking for a way to add a simple fade effect. nmihai, would you be able to post a link to your version?

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Way to add a transition effect?’ is closed to new replies.
Skip to toolbar