Elegant Scroll to Top - Back to top JavaScript plugin example – Theme: theme-2

You can check out the code below to set the parameters.
Theme: theme-2
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>
document.addEventListener('DOMContentLoaded', function() {
    var elegantScrollToTop = new ElegantScrollToTop({        
        theme: 'theme-2'
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.