简体   繁体   中英

How do I recreate the smooth scrolling effect that I found on this site in jQuery/JavaScript?

Here's the site I'm talking about: http://hlkagency.com/ .

Basically, I love the scrolling effect on tapping the up and down arrow keys. Other smooth scrolling libraries I found were too slow and clunky. I want to make something that works exactly like this.

I tried going through the minified script used on the page after beautifying it, but there just seems to be a whole lot going on.

That's a Parallax style scrolling. Like @RobertHarvey pointed on his comment. There are so many libraries since it has become very popular. This Library has examples of how it can be implemented. If you do a google search on parallax libraries for JS you will find a ton.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM