Meteor

A component that displays a meteor shower animation with customizable meteor count and styling.

Install using CLI

npm
pnpm
bun
yarn
npx shadcn-vue@latest add "https://inspira-ui.com/r/meteors.json"

Install Manually

Copy and paste the following code

Meteors.vue

API

Prop NameTypeDefaultDescription
countnumber20The number of meteors to display in the animation.
classstring""Additional CSS classes to apply to the meteors for customization.

Features

  • Meteor Shower Animation: The component renders an animated meteor shower effect, adding a dynamic visual element to your application.
  • Customizable Meteor Count: Adjust the number of meteors by setting the count prop to control the density of the meteor shower.
  • Randomized Animations: Each meteor has randomized position, delay, and duration, creating a natural and varied animation.
  • Styling Flexibility: Pass additional CSS classes through the class prop to customize the appearance of the meteors.
  • Responsive Design: The component adapts to different screen sizes and uses Vue’s reactivity for smooth animations.

Credits