Effects
Before/after DDiff, layered DStack, animated DAura,
DHover3d and DTextRotate — all pure CSS, all prerender-safe.
Hover gallery— The visible photo secretly contains 3 invisible hover zones - one per extra image. Move the mouse over it and each zone reveals a different photo (pure CSS :hover / :has)
Zones: hover the photo’s left third → photo 2, middle → photo 3, right → photo 4. Leave and photo 1 returns.
<DHoverGallery Class="max-w-xs rounded-box">
<img src="https://picsum.photos/id/1011/480/320" alt="Gallery photo 1" class="cursor-pointer" />
<img src="https://picsum.photos/id/1016/480/320" alt="Gallery photo 2" class="cursor-pointer" />
<img src="https://picsum.photos/id/1024/480/320" alt="Gallery photo 3" class="cursor-pointer" />
<img src="https://picsum.photos/id/1035/480/320" alt="Gallery photo 4" class="cursor-pointer" />
</DHoverGallery>Diff (before / after)— Drag the small pill handle at the divider — native CSS resize, no JS. Note: daisy turns EVERY direct child of a diff item into a full-bleed layer, so each side gets exactly one wrapper element
<DDiff Class="max-w-xl aspect-video rounded-box shadow-lg">
<SideA>
<div>
<img src="https://picsum.photos/id/1015/960/540" alt="Before" class="h-full w-full object-cover" />
<span class="badge badge-neutral absolute top-3 left-3">before</span>
</div>
</SideA>
<SideB>
<div>
<img src="https://picsum.photos/id/1016/960/540" alt="After" class="h-full w-full object-cover" />
<span class="badge badge-primary absolute top-3 right-3">after</span>
</div>
</SideB>
</DDiff>Stack
top
stack-top
<DStack Class="h-32 w-44">
<div class="bg-primary/30 rounded-box"></div>
<div class="bg-primary/60 rounded-box"></div>
<div class="bg-primary text-primary-content rounded-box grid place-items-center font-bold">top</div>
</DStack>
<DStack Position="DaisyStackPosition.Top" Class="h-32 w-44">
<div class="bg-secondary/30 rounded-box"></div>
<div class="bg-secondary/60 rounded-box"></div>
<div class="bg-secondary text-secondary-content rounded-box grid place-items-center font-bold">stack-top</div>
</DStack>Aura
Default
animated glow
Rainbow
animated glow
Gold
animated glow
Silver
animated glow
Holo
animated glow
Dual
animated glow
@foreach (var variant in _variants)
{
<DAura Variant="@variant" Size="DaisyAuraSize.Large">
<div class="bg-base-200 rounded-box p-6 text-center">
<div class="font-bold">@variant</div>
<div class="text-xs opacity-60">animated glow</div>
</div>
</DAura>
}
@code {
private static readonly DaisyAuraVariant[] _variants =
[
DaisyAuraVariant.Default,
DaisyAuraVariant.Rainbow,
DaisyAuraVariant.Gold,
DaisyAuraVariant.Silver,
DaisyAuraVariant.Holo,
DaisyAuraVariant.Dual,
];
}Hover 3D— What the zero-JS CSS gives on hover: an outline + corner shine lift cue. daisy's mouse-tracking TILT needs its companion JS that updates --transform / --shine on mousemove - deliberately not shipped (zero-JS policy)
Hover me
outline + shine (tilt needs JS)
Cards too
any first child works
<DHover3d>
<div class="bg-base-200 rounded-box p-8 text-center w-48">
<DIcon Icon="@DaisyIcons.Info" Class="h-8 w-8 mx-auto" />
<div class="font-bold mt-2">Hover me</div>
<div class="text-xs opacity-60">outline + shine (tilt needs JS)</div>
</div>
</DHover3d>
<DHover3d>
<div class="bg-primary text-primary-content rounded-box p-8 text-center w-48">
<div class="font-bold">Cards too</div>
<div class="text-xs opacity-80">any first child works</div>
</div>
</DHover3d>Text rotate— Each direct child is one frame; duration via the --duration variable
Blazor components are
fast.
CSS-first.
JS-free.
server & wasm ready.
<DTextRotate Duration="9s" Class="font-bold text-[var(--color-primary)]">
<span>fast.</span>
<span>CSS-first.</span>
<span>JS-free.</span>
<span>server & wasm ready.</span>
</DTextRotate>API
DHoverGallery
Parameters
| Name | Type | Default | Binding | Description |
|---|---|---|---|---|
| ChildContent | RenderFragment | — | — | The images (or figures) — first one is the default view. |
| Class | string | — | — | Additional CSS classes appended to the component's computed daisyUI classes. |
| Style | string | — | — | Inline styles applied to the root element. |
DDiff
Parameters
| Name | Type | Default | Binding | Description |
|---|---|---|---|---|
| SideA | RenderFragment | — | — | Content of the left/before side. |
| SideB | RenderFragment | — | — | Content of the right/after side (revealed as the divider is dragged). |
| Class | string | — | — | Additional CSS classes appended to the component's computed daisyUI classes. |
| Style | string | — | — | Inline styles applied to the root element. |
DStack
Parameters
| Name | Type | Default | Binding | Description |
|---|---|---|---|---|
| Position | DaisyStackPosition | Bottom | — | Which direction the stack grows. MiddleTopBottom |
| ChildContent | RenderFragment | — | — | The stacked elements (each direct child is one layer). |
| Class | string | — | — | Additional CSS classes appended to the component's computed daisyUI classes. |
| Style | string | — | — | Inline styles applied to the root element. |
DAura
Parameters
| Name | Type | Default | Binding | Description |
|---|---|---|---|---|
| Variant | DaisyAuraVariant | Default | — | Color variant of the animated aura. DefaultGlowGoldHoloRainbowSilverDual |
| Size | DaisyAuraSize | Default | — | Spike radius of the aura. DefaultXSmallSmallMediumLargeExtraLarge |
| ChildContent | RenderFragment | — | — | The content framed by the aura (give it its own background and border-radius). |
| Class | string | — | — | Additional CSS classes appended to the component's computed daisyUI classes. |
| Style | string | — | — | Inline styles applied to the root element. |
DHover3d
Parameters
| Name | Type | Default | Binding | Description |
|---|---|---|---|---|
| ChildContent | RenderFragment | — | — | The 3D content. daisyUI styles the FIRST child as the lifted card (give it the background and border-radius you want). CSS-only behaviour (what this library ships): on hover the card gets a subtle outline and a corner shine. The mouse-tracking TILT daisy demos is NOT pure CSS - it requires daisy's companion JS that updates the --transform and --shine variables on mousemove; add that yourself if you want it (e.g. set --transform via Style for a fixed tilt). |
| Class | string | — | — | Additional CSS classes appended to the component's computed daisyUI classes. |
| Style | string | — | — | Inline styles applied to the root element. |
DTextRotate
Parameters
| Name | Type | Default | Binding | Description |
|---|---|---|---|---|
| Duration | string | — | — | CSS animation duration override (e.g. "10s" ) passed to daisy as --duration . Empty uses daisy's default. |
| ChildContent | RenderFragment | — | — | The rotating phrases — each direct child element is one phrase. |
| Class | string | — | — | Additional CSS classes appended to the component's computed daisyUI classes. |
| Style | string | — | — | Inline styles applied to the root element. |
DIcon
Parameters
| Name | Type | Default | Binding | Description |
|---|---|---|---|---|
| Icon | DaisyIcon | — | — | The icon to render (built-in from DaisyIcons or String) ). |
| Size | DaisySize | Medium | — | Rendered size (xs=12px, sm=14px, md=16px, lg=20px) via inline width/height. ExtraSmallSmallMediumLargeExtraLarge |
| StrokeWidth | double | 1.5 | — | Stroke width for built-in glyphs (heroicons geometry is designed for 1.5). |
| Label | string | — | — | Accessible label. When set the icon gets role="img" + aria-label ; otherwise it is hidden from assistive tech (decorative). |
| Class | string | — | — | Additional CSS classes appended to the component's computed daisyUI classes. |
| Style | string | — | — | Inline styles applied to the root element. |