WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Description fade instead of slide?

[Resolved] Description fade instead of slide?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Stefan Boonstra

    @stefanboonstra

    I’m sorry, fading the description inestad of sliding it probably can’t be done. The descriptions are in the same element as the slide, so they move along as it starts to animate.

    Well, I was actually refering to the div containing the description sliding on mouseover -not on slide change- (It shows up labeled with slideshow_description and slideshow_transparent classes in the markup).
    I was intending to use your plugin on a site in which I’ve already implemented some fading overlays on a grid of masonry formatted items, and I would like to use a similar style for the slideshow -which I would use for the header- to keep it consistent.

    Plugin Author Stefan Boonstra

    @stefanboonstra

    Alright, that’s much easier to do.

    If you go to the slideshow’s settings, set the “Hide description box, pop up when mouse hovers over” setting to “No”. This will prevent the buttons from being animated by the slideshow, but the slideshow will give them the correct height and positioning.

    You can then simply add the below code to your theme (instead of having to adapt the slideshow’s script, which needs to be downloaded from Github and compiled before it works).

    jQuery(document).ready(function()
    {
    	$slideshowSlides = jQuery('.slideshow_container .slideshow_slide');
    
    	$slideshowSlides.find('.slideshow_description').hide();
    
    	$slideshowSlides.on('mouseenter', function(event) { jQuery(event.currentTarget).find('.slideshow_description').stop(true, true).fadeIn(); });
    	$slideshowSlides.on('mouseleave', function(event) { jQuery(event.currentTarget).find('.slideshow_description').stop(true, true).fadeOut(); });
    });

    Aw, thanks, that’ll do it.
    Thanks again for the quick replies; do consider adding the caption slide/fade choice as a feature for this already awesome plugin in the future (maybe some people would like to add different effects to different slideshows).

    Plugin Author Stefan Boonstra

    @stefanboonstra

    No problem. It would indeed be a good feature for a future release.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Description fade instead of slide?’ is closed to new replies.