Smoth Scroll on Rev Slider - by slidebird

This topic has 2 replies, 2 voices, and was last updated 7 years, 11 months ago ago by Jack Richardson

  • Avatar: slidebird
    slidebird
    Participant
    May 2, 2016 at 11:16

    Hi there…

    i made an button in rev slider and used the action attribute from the revslider to scroll below the slide… works fine but its not really smooth… it jumps below… i want a smooth scroll i tried

    jQuery('body').on('click', 'a.tp-caption', function() {
     
        var $this = jQuery(this),
        href = $this.attr('href');
     
        if(!href || href.charAt(0) !== '#') return;
        var el = jQuery(href);
     
        if(!el.length) el = jQuery('a[name=' + href.substring(1, href.length) + ']');
        if(!el.length) return;
     
        jQuery('html, body').animate({scrollTop: el.offset().top}, 10000);
        return false;
     
    });

    But didnt work… can you help me with that?

    thx

    1 Answer
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 3, 2016 at 09:31

    Hello,

    Your query requires additional customization. You can order it via this form https://www.8theme.com/customization-services/ .

    Best regards,
    Jack Richardson.

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.