React-swiftReveal is a React component library and animation framework for animating elements as they enter the viewport.
for more, check the documentation
with npm:
npm install react-swift-reveal
with yarn:
yarn add react-swift-reveal
with pnpm:
pnpm add react-swift-reveal
import { Fade } from "react-swift-reveal";
const App = () => {
return (
<Fade>
<h1>hello world</h1>
</Fade>
);
};
or
import { Fade } from "react-swift-reveal";
const App = () => {
return (
<Fade>
<MyComponent /> //component to be animated
</Fade>
);
};
both examples will fade in the element as it enters the viewport.
- Fade
- Bounce
- Slide
- Zoom
- Flip
- Rotate
- Roll
- LightSpeed
- Flash
- Jello
- Pulse
- RubberBand
- Shake
- Swing
- Tada
- Wobble
- HeadShake
- Pop
- Spin
- Jump
If you like this project, please consider supporting it by giving it a star.