1.6.0 • Published 8 months 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
9 months ago
1.6.0
8 months ago
1.5.1
10 months ago
1.4.2
10 months ago
1.5.0
10 months ago
1.4.1
10 months ago
1.4.0
10 months ago
1.3.1
10 months ago
1.3.0
10 months ago
1.2.10
10 months ago
0.2.9
10 months ago
1.2.11
10 months ago
0.2.7
11 months ago
0.2.6
11 months ago
0.2.8
11 months ago
0.2.3
11 months ago
0.2.5
11 months ago
0.2.4
11 months ago
0.2.2
11 months ago
0.2.1
11 months ago
0.2.0
11 months ago
0.1.17
11 months ago
0.1.16
11 months ago
0.1.15
11 months ago
0.1.14
11 months ago
0.1.13
11 months ago
0.1.12
11 months ago
0.1.11
11 months ago
0.1.10
11 months ago
0.1.9
11 months ago
0.1.8
11 months ago
0.1.7
11 months ago
0.1.6
11 months ago
0.1.5
11 months ago
0.1.4
11 months ago
0.1.3
11 months ago
0.1.2
11 months ago
0.1.1
11 months ago
0.1.0
11 months ago