- Added ability to set custom class name via
className
Fork of vanilla-back-to-top with minor modifications.
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
MIT, see LICENSE
Default icon from Material Design Icons under Apache License 2.0, which only restricts re-selling the icon