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