1.6.0 • Published 2 years ago
@nguyend-nam/scrollery-ts v1.6.0
Scrollery
React TypeScript library for animating your image gallery on scroll.
Installation
npm i @nguyend-nam/scrollery-tsor install using yarn:
yarn add @nguyend-nam/scrollery-tsUsage
Import wrapper components:
import {
LinearlyScaledCardGroup,
StackedCardGroup,
} from "@nguyend-nam/scrollery-ts";Put the imgs inside the wrappers with some custom style/className:
// ...
<LinearlyScaledCardGroup className="w-full flex flex-col items-center gap-[800px] !mt-8 !mb-[800px]">
<img
src="/img/cat1.png"
className="w-full h-full object-cover"
alt="Coding cat"
/>
</LinearlyScaledCardGroup>
<StackedCardGroup className="w-full space-y-[1400px] !mt-8 !mb-40 px-4">
<img
src="/img/cat2.png"
className="w-full h-full object-cover"
alt="Flexing cat"
/>
<img
src="/img/cat3.png"
className="w-full h-full object-cover"
alt="Sitting cat"
/>
<img
src="/img/cat4.png"
className="w-full h-full object-cover"
alt="Sleepy cat"
/>
</StackedCardGroup>
// ...Official website & documentation
Coming soon
Contributing
Contributions are always welcome!
License
1.5.2
2 years ago
1.6.0
2 years ago
1.5.1
3 years ago
1.4.2
3 years ago
1.5.0
3 years ago
1.4.1
3 years ago
1.4.0
3 years ago
1.3.1
3 years ago
1.3.0
3 years ago
1.2.10
3 years ago
0.2.9
3 years ago
1.2.11
3 years ago
0.2.7
3 years ago
0.2.6
3 years ago
0.2.8
3 years ago
0.2.3
3 years ago
0.2.5
3 years ago
0.2.4
3 years ago
0.2.2
3 years ago
0.2.1
3 years ago
0.2.0
3 years ago
0.1.17
3 years ago
0.1.16
3 years ago
0.1.15
3 years ago
0.1.14
3 years ago
0.1.13
3 years ago
0.1.12
3 years ago
0.1.11
3 years ago
0.1.10
3 years ago
0.1.9
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago