2.7.0 • Published 2 years ago
@titelmedia/bricks-smooth-scroll v2.7.0
bricks-smooth-scroll
Usage of wrapper
import ScrollProvider, {
SmoothScrollStyles,
} from '@titelmedia/bricks-smooth-scroll';
<SmoothScrollStyles />
<ScrollProvider>
// page content
</ScrollProvider>Usage of context
restart: restart Loco. necessary if content changes height for example
initTl: init timelines inside content elements. sets to true when images and fonts have loaded... but i have to think about it a bit more, it's shaky.
scrollContainerId: use in ScrollTrigger for { scroller: document.querySelector(#${scrollContainerId})}
import { ScrollContext } from '@titelmedia/bricks-smooth-scroll';
const { scrollContainerId, initTl, restart } = useContext(ScrollContext);2.7.0
2 years ago
2.1.31
2 years ago
2.1.29
2 years ago
2.1.5
2 years ago
2.1.8
2 years ago
2.0.0
3 years ago
1.11.19
3 years ago
1.11.21
3 years ago
1.9.0
3 years ago
1.11.0
3 years ago
1.0.40
4 years ago
1.0.44
4 years ago
1.0.43
4 years ago
1.0.18
4 years ago
1.0.16
4 years ago
1.0.27
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.0
4 years ago
0.4.110
4 years ago
0.4.75
4 years ago
0.4.76
4 years ago
0.4.82
4 years ago
0.4.80
4 years ago
0.4.81
4 years ago
0.4.77
4 years ago
0.4.78
4 years ago
0.4.74
4 years ago
0.4.73
4 years ago
0.4.72
4 years ago
0.4.70
4 years ago
0.4.69
4 years ago
0.4.68
4 years ago
0.4.66
4 years ago
0.4.60
4 years ago
0.4.59
4 years ago