Skip to content

Rianvy/vanilla-back-to-top-custom

Repository files navigation

Vanilla Back To Top

Live demo

Changes in This Version

  • Added ability to set custom class name via className

Original Project

Fork of vanilla-back-to-top with minor modifications.

Usage with New Parameter

Add this to <body> of your HTML:

<script src="https://unpkg.com/vanilla-back-to-top-custom@7.2.3/dist/vanilla-back-to-top.min.js"></script>
<script>
addBackToTop({
  diameter: 56,
  backgroundColor: 'rgb(255, 82, 82)',
  textColor: '#fff',
  className: 'my-custom-class' // New parameter
})
</script>

For alternative installation see INSTALL

See EXAMPLES

For all options see OPTIONS

Documentation

Original Documentation

License

MIT, see LICENSE

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

About

Simple and smooth Back To Top button

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors