
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-cube3d
Advanced tools
Simple 3D Cube inspired by Stripe.
npm install --save react-cube3d

import Cube, { Palette } from "react-cube3d";
const size = 35;
function getRandomFloat(min, max) {
return Math.random() * (max - min) + min;
}
<Cube
/size of the cube
size={size}
// rotation speed
speed={{
x: getRandomFloat(-0.55555555555, 0.55555555555),
y: getRandomFloat(-0.55555555555, 0.55555555555)
}}
// initial angles
// those values support tweezing so you can change them whenever you want
x={30}
y={40}
// Palette
palette={Palette.orange}
/>
noShadow: false,
shadow: {
x: 0,
y: 0
},
palette: Palette.white,
speed: { x: -0.11111, y: 0.1111 },
size: 100,
blurFactor: 0.2,
opacityFactor: 0.4,
easingDuration: 500,
easing: (t, b, c, d) => {
if ((t/=d/2) < 1) return c/2*t*t + b
return -c/2 * ((--t)*(t-2) - 1) + b
},
x: 0,
y: 0
For example, this is the red palette !
{
color: [190, 10, 0],
shading: [200, 250, 200]
}
Angles changes when the mouse of hover the container !
class CubeHover extends Component {
state = {
hover: false
}
render() {
var { hover } = this.state;
return (
<Cube
// noShadow
shadow={{
x: "35%",
y: "70%"
}}
onMouseOver={() => {
this.setState({
hover: true
});
}}
onMouseOut={() => {
this.setState({
hover: false
});
}}
size={size}
speed={{
x: 0.0,
y: 0.0
}}
x={!hover ? -35 : -50}
y={!hover ? 45 : 80}
palette={Palette.green}
/>
)
}
}
FAQs
3D Cube inspired by Stripe.
We found that react-cube3d 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
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.