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-ts
or install using yarn:
yarn add @nguyend-nam/scrollery-ts
Usage
Import wrapper components:
import {
LinearlyScaledCardGroup,
StackedCardGroup,
} from "@nguyend-nam/scrollery-ts";
Put the img
s 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
2 years ago
1.4.2
2 years ago
1.5.0
2 years ago
1.4.1
2 years ago
1.4.0
2 years ago
1.3.1
2 years ago
1.3.0
2 years ago
1.2.10
2 years ago
0.2.9
2 years ago
1.2.11
2 years ago
0.2.7
2 years ago
0.2.6
2 years ago
0.2.8
2 years ago
0.2.3
2 years ago
0.2.5
2 years ago
0.2.4
2 years ago
0.2.2
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.17
2 years ago
0.1.16
2 years ago
0.1.15
2 years ago
0.1.14
2 years ago
0.1.13
2 years ago
0.1.12
2 years ago
0.1.11
2 years ago
0.1.10
2 years ago
0.1.9
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago