Lamp Effect

A captivating lamp lighting effect with conic gradients, spotlights, and glowing lines for an immersive visual experience.

Install using CLI

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

Install Manually

Copy and paste the following code

LampEffect.vue

API

Prop NameTypeDefaultDescription
delaynumber0.5Delay before the animation starts, in seconds.
durationnumber0.8Duration of the animation, in seconds.
classstring""Additional CSS classes for custom styling.

Features

  • Conic Gradient Animation: Creates a smooth expanding conic gradient effect, giving a dynamic light-source appearance.
  • Spotlight Animation: The spotlight smoothly expands, providing a focused lighting effect.
  • Glowing Line Effect: A glowing line animates across the center, simulating a light beam or laser.
  • Customizable Timing: The delay and duration props allow for precise control of animation timings.
  • Slot-Based Content: Supports default slot content, making it easy to overlay text or other components.

Credits