Elegant Scroll to Top - Back to top JavaScript plugin example – Button Size: small

You can check out the code below to set the parameters.
Button Size: small
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({        
        width: '36px',
        height: '36px'
Related options
Peoprty Possible Values Default Value Description
width e.g. null, '48px', '56px', '60px', etc. null The width of the button.
height e.g. null, '48px', '56px', '60px', etc. null The height of the button.