This project adheres to Semantic Versioning.
- minify output -
82e096f
- remove dependencies which were actually dev dependencies -
9a5ede5
- modularize lodash' custom build used in this component -
7e720dd
- fix: add display none to fallback element to prevent style override (hidden attribute gets overridden by display flex). - 9a3fc89
- fix: supports class
back-to-top-fallback
for the fallback element selection. - 2df7e06
<back-to-top throttle="350">
<a href="#" class="back-to-top-fallback" style="position: fixed;">back-to-top</a>
<template>
button content here
</template>
</back-to-top>
- Fallback anchor link support when javascript can't execute. (#5)
- Customizable button content
83dfe0e
.
<back-to-top throttle="350">
<a href="#" style="position: fixed; left: 1rem; bottom: 2rem;">back-to-top</a>
<template>
button content here
</template>
</back-to-top>
- v2.0 - throttle rate modification support via attribute (#2)
- Moved away from the
is
attribute (safari doesn't support it) and refactored the component to be an autonomous custom element by just extending theHTMLElement
class. See discussion #1. - With this change, you have to define your element in HTML as shown below:
<back-to-top throttle="400"></back-to-top>