Elegant Scroll to Top - Back to top JavaScript plugin example – Theme: theme-black
You can check out the code below to set the parameters.
Theme: theme-black
Example code
<link rel="stylesheet" href="http://your-domain.com/elegant-scroll-to-top/css/elegant-scroll-to-top.min.css">
<script src="http://your-domain.com/elegant-scroll-to-top/js/elegant-scroll-to-top.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var elegantScrollToTop = new ElegantScrollToTop({
theme: 'theme-black'
});
elegantScrollToTop.init();
});
</script>
Related options
Peoprty | Possible Values | Default Value | Description |
---|---|---|---|
theme | e.g. 'theme-white', 'theme-light', 'theme-midtone', 'theme-dark', 'theme-black', 'theme-1', 'theme-2', ... 'theme-10', etc. | 'theme-black' | The theme of the button. You can override the theme by using further options such as bgColor, iconColor, etc. |
Scroll down to view the Scroll to Top button
You can see it now