vanilla-back-to-top-custom

7.2.3 • Public • Published

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.2/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

Package Sidebar

Install

npm i vanilla-back-to-top-custom

Weekly Downloads

4

Version

7.2.3

License

MIT

Unpacked Size

17.4 kB

Total Files

9

Last publish

Collaborators

  • rianvy