The easiest way to add reveal animations to your React applications as the elements enter viewport. it includes Both on scroll and simple reveal animations.
npm install @skyfall-powered/react-revealbash
npm install react-swift-reveal
`
with yarn:
`bash
yarn add react-swift-reveal
`
with pnpm:
`bash
pnpm add react-swift-reveal
`
Usage
`javascript
import { Fade } from "react-swift-reveal";
const App = () => {
return (
hello world
);
};
`
or
`javascript
import { Fade } from "react-swift-reveal";
import MyComponent from "./MyComponent"; // component to be animated
const App = () => {
return (
//component to be animated
);
};
`
$3
`javascript
"use client";
import { Fade } from "react-swift-reveal";
const App = () => {
return (
hello world
);
};
``