Jump to content
Search Community

How to make Back to top with Progress indicator? (locomotive scroll)

Ivan Mocs test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

  • Solution

That's an extremely inefficient way of doing it. Not only is that code much more CPU-intensive, you could drop jQuery altogether and shrink the code significantly by using DrawSVGPlugin (Club GreenSock membership benefit), ScrollTrigger, and ScrollToPlugin: 

See the Pen GRQEYwZ?editors=0010 by GreenSock (@GreenSock) on CodePen

 

I hope that helps. 

  • Like 3
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...