2.7.0 • Published 1 year ago

@titelmedia/bricks-smooth-scroll v2.7.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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

1 year ago

2.1.31

1 year ago

2.1.29

2 years ago

2.1.5

2 years ago

2.1.8

2 years ago

2.0.0

2 years ago

1.11.19

2 years ago

1.11.21

2 years ago

1.9.0

2 years ago

1.11.0

2 years ago

1.0.40

3 years ago

1.0.44

3 years ago

1.0.43

3 years ago

1.0.18

3 years ago

1.0.16

3 years ago

1.0.27

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.0

3 years ago

0.4.110

3 years ago

0.4.75

3 years ago

0.4.76

3 years ago

0.4.82

3 years ago

0.4.80

3 years ago

0.4.81

3 years ago

0.4.77

3 years ago

0.4.78

3 years ago

0.4.74

3 years ago

0.4.73

3 years ago

0.4.72

3 years ago

0.4.70

3 years ago

0.4.69

3 years ago

0.4.68

3 years ago

0.4.66

3 years ago

0.4.60

3 years ago

0.4.59

3 years ago