Skip to content

Commit 9e83809

Browse files
authored
Fixed linear easing πŸ“
1 parent f9384f8 commit 9e83809

File tree

9 files changed

+433
-517
lines changed

9 files changed

+433
-517
lines changed

β€Žchangelog.MDβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
### 2.1.2
4+
- Bugfix: linear easing not working
5+
36
### 2.1.1
47
- Call destroy method on initialization to prevent errors with existing ones
58
- Added a update Method to edit settings after initialization

β€Ždemo/index.htmlβ€Ž

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ <h3>Options:</h3>
117117
<script src="../dist/scrolltosmooth.js"></script>
118118
<script>
119119
var smoothScroll = new scrollToSmooth('a', {
120-
easing: 'easeInOutElastic',
121-
speed: 600,
120+
easing: 'easeInOutQuad',
121+
easing: 'linear',
122+
duration: 600,
122123
durationRelative: true,
123124
updateURL: true,
124125
//onScrollStart: (data) => { console.log(data); },

0 commit comments

Comments
Β (0)