Animations
simple
HeadShake Animation

HeadShake Animation

The HeadShake animation creates a subtle head-shaking effect by combining horizontal movement with rotation.

Demo

This element will shake its head as it enters the viewport.

Usage

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

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

Props

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