Animations
simple
HeadShake Animation

HeadShake Animation

The HeadShake animation adds a playful and dynamic head-shaking effect to elements, creating a visually engaging transition.

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

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