Toggle Sidebar B
AppearanceLight & dark mode D

Decay Card

Hover parallax effect that disintegrates the content of a card.

Default

Move the pointer around the window. The faster it travels, the more the card decays.

Light previewReplay previewOpen in new tab

Decay
Card

Customize

Width300
Height400
Base Frequency0.015
Num Octaves5
Seed4
Max Displacement400
Movement Bound50

API Reference

DecayCard

PropTypeDefaultDescription
widthnumber300The width of the card in pixels.
heightnumber400The height of the card in pixels.
imagestring'https://picsum.photos/300/400?grayscale'Allows setting the background image of the card.
baseFrequencynumber0.015Base frequency for the turbulence filter. Lower values create larger, smoother patterns.
numOctavesnumber5Number of octaves for the turbulence filter. Higher values add finer detail.
seednumber4Seed value for the turbulence random number generator.
maxDisplacementnumber400Maximum displacement scale applied when the cursor moves. Controls the intensity of the decay effect.
movementBoundnumber50Maximum pixel distance the card can translate from its origin when following the cursor.

Slots

PropTypeDefaultDescription
defaultVNode-Content rendered over the image. The first line is drawn at 6rem.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • The effect follows the pointer across the whole window and is decorative. The image has no alt text, so put real content in the slot.