Lamp Effect

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

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.

Component Code

You can copy and paste the following code to create this component:

LampEffect.vue

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