{# @description daisyUI's hover 3D card: content that tilts toward the pointer, drawn from the default slot, with eight hidden zones behind it that track the pointer. Renders as an when href is given, a
otherwise. The content must be one element and hold no buttons, links or inputs of its own. A linked card takes its accessible name from the content's text or image alt, or from an aria-label you give it. The tilt needs a pointer to move; whether it respects a reduced-motion setting is up to daisyUI's CSS. See the mockup.browser entry for a linked card wrapping a . #} {# @prop href:text | description:"When given, the card renders as an with this href instead of a
." #} {# @prop class:text | description:"Extra classes added to the card." #} {# @slot
A blue credit card
— An image that tilts toward the pointer as it moves across the card. #} {# djlint:off #} {% with element=href|yesno:"a,div" %} {# djlint:off #} <{{ element }}{% if href %} href="{{ href }}"{% endif %} class="hover-3d {{ class }}" {{ attrs }}>{{ slot }} {# djlint:on #} {% endwith %}