sweet-scroll
Advanced tools
Changelog
4.0.0
container
from body,html
to window
.
body,html
, it may cause unintended behaviors.quickMode
options.onclick
handling.
Changelog
3.0.0
TypeScript support and file size down are the main changes. 3.x
is a version that contains many destructive changes.
SweetScroll.create(options?: PartialOptions, container?: string | Element)
)
new
or you do not need to manage instances.requestAnimationFrame
.delay
outputLog
verticalScroll
-> vertical
horizontalScroll
-> horizontal
stopScroll
-> cancellable
beforeScroll
-> before
afterScroll
-> after
canelScroll
-> canel
completeScroll
-> complete
stepScroll
-> step
easeInElastic
easeOutElastic
easeInOutElastic
easeInBack
easeOutBack
easeInOutBack
easeInBounce
easeOutBounce
easeInOutBounce
distance
argument pattern
top:0, left:100
)beforeScroll
-> onBefore
afterScroll
-> onAfter
cancelScroll
-> onCancel
completeScroll
-> onComplete
stepScroll
-> onStep
header
)this
when using arrow function.Changelog
2.1.0
quickMode
options
easeOutExpo
)Changelog
2.0.1
outputLog
option)Changelog
2.0.0
Related issues #31. Thanks @nickclaw!!
DOMContentLoaded
. (So far it has been listening in the library.)
initialized
callback & method.searchContainerTimeout
options.Changelog
1.1.0
searchContainerTimeout
options
outputLog
options
yarn.lock