Awesome Open Source
Awesome Open Source

Vanilla Back To Top

No Dependencies File Size GitHub stars

Simple and tiny Back To Top button with no dependencies. Hides when on top, scrolls up smoothly when clicked. Works equally great with Vue, React, Angular and without frameworks on Jekyll, Hugo and Hexo


Live demo

Features

How to use

Add this to <body> of your HTML:

<script src="https://unpkg.com/[email protected]/dist/vanilla-back-to-top.min.js"></script>
<script>addBackToTop({
  diameter: 56,
  backgroundColor: 'rgb(255, 82, 82)',
  textColor: '#fff'
})</script>

For alternative installation see INSTALL

See EXAMPLES

For all options see OPTIONS

License

MIT, see LICENSE

Default icon from Material Design Icons under Apache License 2.0, which only restricts re-selling the icon


Support me with a star ♥

Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,089,895
Reactjs (166,672
Vue (68,275
Angular (54,868
Button (18,798
Jekyll (18,166
Material (15,927
Babel (7,992
Hugo (4,051
Postcss (3,400
Hexo (2,076
Static Site Generator (1,639
Autoprefixer (823
Configurable (153
Zero Dependency (128
Browserslist (46
Babel Preset Env (23
Backtop (11