Animations
in-out
Roll Animation

Roll Animation

The Roll animation creates a rolling entrance effect, making elements appear to roll in from the side.

Demo

This element will roll in as it enters the viewport.

Usage

To use the Roll animation, import it from react-swift-reveal:

App.jsx
import { Roll } from 'react-swift-reveal';
 
const App = () => {
  return (
    <Roll>
      <div className="box">
        This element will roll in as it enters the viewport.
      </div>
    </Roll>
  );
};

Props

Roll 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.