
react-thanos
React hooks implementation of Google's Thanos easter egg
Prerequisite
-
NodeJS- Project running
React 16.8Installation 📦
``bash
npm install react-thanos
`
or with yarn
`bash
yarn add react-thanos
`
Usage
`javascript
import { Thanos } from "react-thanos";
onSnap={() => console.log("I love you 3000! Decimate...") }
onSnapReverse={() => console.log("Avengers assemble!") }
/>
`
Examples
See
examples folder
Live demo https://react-thanos.netlify.com/
API (props)
$3
Type: function
Called after Thanos snaps his finger
$3
Type: function`
Called after Thanos undo/reverse snap
Inspiration
This project was inspired by the famous Google's
Thanos easter egg released
shortly after
Avengers: Endgame premiered in cinemas.
Credits
Assetsused in this project were downloaded from Google. I own no rights to them.
Contributing
Feel free to send in contributions of any kind. All are welcome 🙂
License
react-thanos is licensed under
MIT