Elegant Scroll to Top - Back to top JavaScript plugin example – Button Shape: smooth rounded
You can check out the code below to set the parameters.
Button Shape: smooth rounded
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({
borderRadius: '12px'
});
elegantScrollToTop.init();
});
</script>
Related options
Peoprty | Possible Values | Default Value | Description |
---|---|---|---|
borderRadius | e.g. '0px', '4px', '50%', '999px', '12px 0px 12px 0px', etc. | '999px' | The radius of border for the button. |
Scroll down to view the Scroll to Top button
You can see it now