Animations
in-out
Flip Animation

Flip Animation

The Flip animation adds a dynamic flip effect to elements, providing an engaging visual transition.

Usage

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

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

Props

The Fade animation accepts the following specific props:

PropTypeDescriptionDefault
xbooleanIf true, the element will flip on the x-axis.false
ybooleanIf true, the element will flip on the y-axis.false

For Other common props, You can refer to the Swift Reveal Props documentation for a list of all available props.