
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-hover-graphic
Advanced tools
import React from "react";
import HoverGraphic from "react-hover-graphic";
export const ExampleComponent: React.FC = () => {
return (
<HoverGraphic
src="https://matthewtrent.me/cat_shock.gif" // graphic source (local or remote)
height="100px" // graphic height; default: "auto"
width="200px" // graphic width; default: "auto"
objectFit="contain" // graphic object-fit ("cover" | "contain" | "fill" | "none" | "scale-down"); default: "cover"
offsetTop={0} // graphic offset top; default: 0
offsetLeft={0} // graphic offset left; default: 0
offsetRight={0} // graphic offset right; default: 0
offsetBottom={60} // graphic offset bottom; default: 0
zIndex={9999} // graphic z-index; default: 9999
disabled={false} // disable effect; default: false
disabledOnMobile={false} // disable effect on mobile; default: true
>
// any children, here's an example link
<a href="https://matthewtrent.me">hello world</a>
</HoverGraphic>
);
};
Available on npmjs. Installable via:
npm install react-hover-graphic
or
yarn add react-hover-graphic
The package is always open to improvements, suggestions, and additions!
I'll look through PRs and Issues as soon as I can!
This package was mainly created just to test out publishing a package to npmjs. Also, because I like using this effect on websites I make and wanted an easier way to implement it.
FAQs
A React component to effortlessly display a graphic on hover
We found that react-hover-graphic demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.