
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
gradient-icon-motion
Advanced tools
This package provides three React components for animated backgrounds and floating icons.
This package provides three React components for animated backgrounds and floating icons.
Creates a customizable gradient animation background.
Usage:
import 'gradient-icon-motion/dist/esm/index.css';
import { BackgroundGradientAnimation } from 'gradient-icon-motion';
<BackgroundGradientAnimation
animationHeight={"100vh"}
animationWidth={"100vw"}
>
<div
style={{
width: '100%',
height: '100vh',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
fontSize: '2rem',
fontWeight: '600',
color: 'white'
}}
>
Elegant gradient backgrounds in motion
</div>
</BackgroundGradientAnimation>
You can use other props to modify your animation.
Prop Name | Type | Default Value | Description |
---|---|---|---|
gradientBackgroundStart | string | 'rgb(108, 0, 162)' | Starting RGB color of the gradient background. |
gradientBackgroundEnd | string | 'rgb(0, 17, 82)' | Ending RGB color of the gradient background. |
firstColor | string | '18, 113, 255' | First color of the gradient (withou rgb tag). |
secondColor | string | '221, 74, 255' | Second color of the gradient (without rgb tag). |
thirdColor | string | '100, 220, 255' | Third color of the gradient (without rgb tag). |
fourthColor | string | '200, 50, 50' | Fourth color of the gradient (without rgb tag). |
fifthColor | string | '80, 180, 50' | Fifth color of the gradient (without rgb tag). |
size | string | '80%' | Size of floating gradients (circles). |
blendingValue | string | 'hard-light' | Blending mode used for the floating gradients. |
animationHeight | string | '100vh' | Height of the animation |
animationWidth | string | '100vw' | Width of the animation |
children | React.ReactNode | undefined | content to be rendered within the gradient background. |
This component, originally adapted and modified from here, creates a smooth gradient animation that can be customized with various props to fit the desired aesthetic of your project.
Renders randomly shuffles floating icons.
Usage
import 'gradient-icon-motion/dist/esm/index.css';
import { FloatingIcons } from 'gradient-icon-motion';
<FloatingIcons
animationHeight={"100vh"}
animationWidth={"100vw"}
iconColor="black"
>
<div
style={{
width: '100%',
height: '100vh',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
fontSize: '2rem',
fontWeight: '600'
}}
>
Floating icons create visual interest
</div>
</FloatingIcons>
You can use other props to modify your animation.
Prop Name | Type | Default Value | Description |
---|---|---|---|
icons | array | ['fa-solid fa-magnifying-glass', ...15 more] | An array of icons (Fontawesome icons) to be used for the floating icons. |
iconColor | string | '#EEE8AA' | The color of the floating icons. |
floatingDirectionReverse | boolean | false | Whether to reverse the floating direction of the icons. |
animationHeight | string | '100vh' | Height of the animation |
animationWidth | string | '100vw' | Width of the animation |
children | React.ReactNode | undefined | content to be rendered within the gradient background. |
Note: For optimal performance, use 15 icons. Increasing icons count will lead to slower animation and high floating speed. Currently working on this issue.
Combines both BackgroundGradients
and FloatingIcons
animations.
Usage:
import 'gradient-icon-motion/dist/esm/index.css';
import { GradientIconMotion } from 'gradient-icon-motion';
<GradientIconMotion
animationHeight={"100vh"}
animationWidth={"100vw"}
iconColor="black"
>
<div
style={{
width: '100%',
height: '100vh',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
fontSize: '2rem',
fontWeight: '600',
color: 'white'
}}
>
Captivating blend of gradients and icons
</div>
</GradientIconMotion>
Supports props from both BackgroundGradients and FloatingIcons components.
Contributions are welcome! Open issues or submit pull requests to help enhance this package (GitHub).
FAQs
This package provides three React components for animated backgrounds and floating icons.
The npm package gradient-icon-motion receives a total of 0 weekly downloads. As such, gradient-icon-motion popularity was classified as not popular.
We found that gradient-icon-motion demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.