Jump to content
Search Community

Scrollsmoother Paused

Sukru test
Moderator Tag

Recommended Posts

On 8/18/2022 at 12:49 AM, Cassie said:

Heya!

 

I'm sure I remember answering this one. smoother.paused() is what you're after. You just call it and pass in a boolean.
 

 

@Cassie Hello again, so can we use it like toggleClass here?

 

$(function () {
$(".mobile-menu").click(function (event) {
event.stopPropagation();
$("#hamburger-menu").toggleClass("open");
$('.menu-content').toggleClass("open");
$('.mobile-menu-content').toggleClass('visible');
smoother.paused(true);
});
 
$(".mobile-menu").click(function (event) {
smoother.paused(false);
});
});
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...