This topic has 2 replies, 2 voices, and was last updated 7 years, 11 months ago ago by Jack Richardson
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
Hello,
Your query requires additional customization. You can order it via this form https://www.8theme.com/customization-services/ .
Best regards,
Jack Richardson.
You must be logged in to reply to this topic.Log in/Sign up