Swing Animation
The Swing animation creates a pendulum-like swinging effect by rotating the element back and forth.
Demo
This element will swing as it enters the viewport.
Usage
To use the Swing animation, import it from react-swift-reveal
:
App.jsx
import { Swing } from 'react-swift-reveal';
const App = () => {
return (
<Swing>
<div className="box">
This element will swing as it enters the viewport.
</div>
</Swing>
);
};
Props
Swing animation doesn't have any specific props of its own. it has all the props of Swift Reveal Props.
You can refer to the Swift Reveal Props documentation for a list of all available props.