The Hover 3D component wraps any content with DaisyUI's hover-3d effect,
tilting and rotating the content based on the mouse position to create an
interactive 3D feel.
Only put non-interactive content inside the wrapper. If you want the
whole card to be clickable, pass an href: option so the wrapper is
rendered as an <a> tag (the DaisyUI-recommended approach).
Wrap any element to give it a 3D tilt on hover.

Combine daisy_hover with daisy_card and a colored background to
build an interactive credit-card-like effect. Pass an href: to make
the entire card clickable.
= daisy_hover(href: "#", css: "my-4 mx-2 cursor-pointer") do
= daisy_card(css: "w-96 bg-black text-white") do |card|
.flex.justify-between.mb-10
.font-bold BANK OF ACMEVILLE
.text-5xl.opacity-10 ❁
.text-lg.mb-4.opacity-40 0210 8820 1150 0222
.flex.justify-between
%div
.text-xs.opacity-20 CARD HOLDER
%div VICTOR VON D.
%div
.text-xs.opacity-20 EXPIRES
%div 29/08
Use daisy_hover repeatedly to build an interactive gallery where each
image responds to the cursor independently.



Create virtual credit / debit cards to keep your real info safe.
Get $5 when you sign up — free to start!
Everything you need to grow your business with confidence!
CRM, Lead Generation, Project Management, Contracts, Online Payments, and more!
The ads above are affiliate links to products I regularly use and highly
recommend.
I may receive a commission if you decide to purchase.