- Added
smooth
feature whenlerp
the animation. 🎉🎉
- fixed
enter
andenterback
events triggering multiple times whenlerp
is enabled. - Previously under the hood of pinning an element,
translate3d
CSS property was used. It only work well in Chrome and not in browsers such as Firefox or Safari. Thus I have decided to useposition
andtop
CSS properties for pinning an element.
- Pinning now calculates margin top of pin element.
- fix that progress value close to 0 or 1 was not triggering correctly when lerping.
- pinContainer will respect the css styles of trigger element