/react-raptorize

Key the secret code to see some dino-magic! 🦖

Primary LanguageJavaScript

react-raptorize 🦖

This component is totally invisible until a user triggers the Konami Code... at which point they will see (and hear) a raptor run across their screen!

Installation

yarn add react-raptorize
npm install react-raptorize --save

Demo

Usage

<Raptorize
  soundDelay={500}  // Delay (ms) before playing audio
  sound             // Should sound play at all
  repeat            // Allow repeating the final code
  code              // Display the code in the UI
  disabled={false}  // Will this run at all
/>

This project is inspired by formaweb/vanilla-raptorize... which itself was a port of the original Zurb Raptorize.

License

ISC