Elevator.js fixes those awkward "scroll to top" moments the old fashioned way. Finally, a "back to top" button that behaves like a real elevator, by adding elevator music to quietly soothe the awkwardness that can ensue when being smoothly scrolled to the top of the screen. Elevator.js is a stand alone library (no jquery, or the likes) so usage is pretty straight forward. All styling of elements is up to you. Elevator.js only handles the audio management, and the scroll functionality! Elevator.js lives entirely within the js realm, which makes things fairly simple to use. You'll need to create a new instance of Elevator, and pass it some audio elements. Elevator.js is covered by the MIT License.

Features

  • You'll need to create a new instance of Elevator, and pass it some audio elements
  • If you don't want to scroll to the top, a custom target can be specified by adding a "targetElement" option
  • If you want to scroll to a point on the page with some extra padding on the top, simply add the "verticalPadding" option
  • If you're really serious (boring), you don't have to use audio... and can also set a fixed time to scroll to the top
  • If you use elevator.js in combination with other code, you might want to use callbacks
  • The package is also available via NPM

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow elevator.js

elevator.js Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of elevator.js!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript User Interface (UI) Software

Registered

2021-08-31