
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
react-3d-hover
Advanced tools
"A tiny package to hover smooth as butter for React"
This package uses hooks internally so it has a requirement of React version 16.8 or above.
This package is hosted on npm
npm i react-3d-hover
This component is imported and used like any standard React component
import React from 'react';
import Hover from 'react-3d-hover';
const App = () => {
return (
<div class="App">
<Hover></Hover>
</div>
);
};
export default App;
Here is a list of available options with their defaults:
style: {} // A jsx style object that will be applied to the root element
max: 10 // Max tilt rotation (degrees)
perspective: 1000 // Transform perspective, the lower the more extreme the tilt gets.
scale: 1 // 2 = 200%, 1.5 = 150%, etc..
speed: 400 // Speed of the enter/exit transition
easing: "cubic-bezier(.03,.98,.52,.99)", // Easing on enter/exit
onMouseEnter: (e) => {} // A callback function for the mouse enter event
onMouseMove: (e) => {} // A callback function for the mouse move event
onMouseLeave: (e) => {} // A callback function for the mouse leave event
Example:
<Hover scale={1.2} perspective={900} speed={500}>
<div>Hello World</div>
</Hover>
FAQs
Wrap components to get a 3D hover
We found that react-3d-hover 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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.