
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
react-thanos-snap
Advanced tools
Giving you the ability to easily converting your React components into dust with a single snap!
Inspired the amazing Marvel Avenger movies and Google Thanos ester egg.
Add this package to your react app project
npm install react-thanos-snap
yarn add react-thanos-snap
Simply wrap your component with the react-thanos-snap
component. And set the snap
props!
This packages also have the ability to restoring back your components by changing the snap
to false
.
import React, { useState } from 'react';
import InfinityGauntlet from 'react-thanos-snap';
function App(props) {
const [snap, setSnap] = useState(false);
return (
<div>
<InfinityGauntlet snap={true}>{/** Put your components here **/}</InfinityGauntlet>
<button onClick={() => setSnap(!snap)}>Snap❗️</button>
</div>
);
}
position: relative;
style on it.html2canvas
. This library have the limitation that can not render the image outside the origin because of the content policy restriction from the browser. if you wish to render image outside your origin, please read kindly use proxy;. This component have the options.proxy
props so you can add the proxy on that props.The idea of this project also comes from red stappler tutorial. I porting the logic to the react and use some modification on the animation. So super thanks to the red stapper for creating the great tutorial!
The Amazing infinity gauntlet logo image for this repo is owned by Jamie Ferrato. I own no rights to the image.
I ❤️ to have your helping on react-thanos-snap project! Feel free to PR's, add issues or give feedback! Enjoy your mighty power 😎
MIT
FAQs
React component for creating thanos snapping effect
The npm package react-thanos-snap receives a total of 13 weekly downloads. As such, react-thanos-snap popularity was classified as not popular.
We found that react-thanos-snap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.