Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@stianlarsen/meteors
Advanced tools
A dynamic and customizable React component for rendering realistic meteor animations on any container. Supports light and dark modes, and allows configuration for speed, size, and the number of meteors.
A dynamic and customizable React component for rendering realistic meteor animations on any container. Perfect for adding a unique and mesmerizing effect to your web applications.
Check out the website for demos, examples, and further info.
Install the package using npm:
npm install @stianlarsen/meteors
Or using yarn:
yarn add @stianlarsen/meteors
Import and use the Meteors component in your React project:
import Meteors from "@stianlarsen/meteors";
function App() {
return (
<div style={{ position: "relative", width: "300px", height: "300px" }}>
<Meteors
speed={2}
size={50}
amount={20}
colorLightmode="black"
colorDarkmode="white"
fallingSide="right"
/>
</div>
);
}
Meteors
Component PropsThe Meteors
component accepts several props to customize its behavior and appearance:
Prop | Type | Description |
---|---|---|
speed | number | The speed of the meteors' fall. Defaults to 1 . |
size | number | The size of the meteors. Defaults to 50 . |
amount | number | The number of meteors. Defaults to 20 . |
fallingSide | string | Determines the direction of the meteor fall (left or right ). Defaults to left . |
colorLightmode | string | The color of the meteors in light mode. Defaults to "rgba(0, 0, 0, 1)" . |
colorDarkmode | string | The color of the meteors in dark mode. Defaults to "rgba(255, 255, 255, 1)" . |
Here is how you can customize the meteors' behavior using the available props:
<Meteors
speed={3}
size={30}
amount={10}
colorLightmode="blue"
colorDarkmode="yellow"
fallingSide="left"
/>
Contributions are always welcome! Please feel free to open issues or submit pull requests.
@stianlarsen/meteors
is MIT licensed.
For any questions or suggestions, feel free to reach out.
FAQs
A dynamic and customizable React component for rendering realistic meteor animations on any container. Supports light and dark modes, and allows configuration for speed, size, and the number of meteors.
The npm package @stianlarsen/meteors receives a total of 0 weekly downloads. As such, @stianlarsen/meteors popularity was classified as not popular.
We found that @stianlarsen/meteors 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 malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.