Animations
simple
Shake Animation

Shake Animation

The Shake animation adds a lively and dynamic shaking effect to elements, creating an engaging visual transition.

Usage

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

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

Props

The Shake animation doesn't have any specific props, but it accepts all the props that are available to all animations. You can read more about them in the Swift Reveal Props documentation.