Animated Gradient Text
The default configuration uses a warm orange-to-purple animated gradient and only requires child content. Tune animation width and gradient colors using Because the default element is Set You can override the root element and pass additional semantics like Not applicable. RzAnimatedGradientText applies an animated linear gradient fill to inline text. The component is SSR-only, CSS-driven, and requires no Blazor interactivity or Alpine integration. It works well for highlighting labels, headings, callouts, and marketing-style inline copy.<RzAnimatedGradientText class="text-2xl font-semibold">
Bring emphasis to any message.
</RzAnimatedGradientText>Speed, ColorFrom, and ColorTo.<RzAnimatedGradientText Speed="2"
ColorFrom="#4ade80"
ColorTo="#06b6d4"
class="text-3xl font-bold">
High-contrast custom gradient
</RzAnimatedGradientText>span, this component composes naturally with other inline UI.<div class="group relative mx-auto flex items-center justify-center rounded-full border px-4 py-1.5">
<span class="absolute inset-0 block h-full w-full rounded-[inherit] bg-gradient-to-r from-[#ffaa40]/50 via-[#9c40ff]/50 to-[#ffaa40]/50 bg-[length:300%_100%] p-[1px]" />
🎉 <hr class="mx-2 h-4 w-px shrink-0 bg-muted-foreground" />
<RzAnimatedGradientText class="text-sm font-medium">Introducing RizzyUI</RzAnimatedGradientText>
<Blazicon Svg="MdiIcon.ChevronRight" class="ml-1 size-4 text-muted-foreground" />
</div>Animate to false to keep the gradient styling without motion.<RzAnimatedGradientText class="text-xl font-semibold">Animated gradient</RzAnimatedGradientText>
<RzAnimatedGradientText Animate="false" class="text-xl font-semibold">Static gradient</RzAnimatedGradientText>title, lang, and custom classes.<RzAnimatedGradientText Id="gradient-title"
Element="strong"
title="Localized attention text"
lang="en"
class="tracking-wide uppercase text-lg">
Accessibility-friendly emphasized text
</RzAnimatedGradientText>Property Description Type Default ChildContentInline content rendered with gradient styles. RenderFragment?nullSpeedAnimation width/speed multiplier. Values less than or equal to zero are clamped to 0.1.decimal1ColorFromGradient start and end color custom property value. string#ffaa40ColorToGradient middle color custom property value. string#9c40ffAnimateEnables or disables gradient animation. booltrueElementInherited root element override. Defaults to span.string?spanIdInherited component identifier applied to the root element. stringauto-generatedRzAnimatedGradientText is CSS-only and does not emit Alpine directives or JavaScript hooks.