animated-shiny-button
eldoraui/animated-shiny-buttonFreeComponent
An animated shiny button component.
Live preview
live · rendered by the registry
Rendered by eldoraui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://eldoraui.site/r/animated-shiny-button.jsonSource
1"use client"23import type React from "react"4import { ChevronRight } from "lucide-react"56interface AnimatedShinyButtonProps {7 children: React.ReactNode8 className?: string9 url?: string10}1112export function AnimatedShinyButton({13 children,14 className = "",15 url,16}: AnimatedShinyButtonProps) {17 return (18 <>19 <style jsx>{`20 @import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,500&display=swap");2122 @property --gradient-angle {23 syntax: "<angle>";24 initial-value: 0deg;25 inherits: false;26 }2728 @property --gradient-angle-offset {29 syntax: "<angle>";30 initial-value: 0deg;31 inherits: false;32 }3334 @property --gradient-percent {35 syntax: "<percentage>";36 initial-value: 5%;37 inherits: false;38 }3940 @property --gradient-shine {41 syntax: "<color>";42 initial-value: white;43 inherits: false;44 }4546 .shiny-cta,47 .shiny-cta-link {48 --shiny-cta-bg: #000000;49 --shiny-cta-bg-subtle: #1a1818;50 --shiny-cta-fg: #ffffff;51 --shiny-cta-highlight: #67e8f9;52 --shiny-cta-highlight-subtle: #06b6d4;53 --animation: gradient-angle linear infinite;54 --duration: 3s;55 --shadow-size: 2px;56 --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);5758 isolation: isolate;59 position: relative;60 overflow: hidden;61 cursor: pointer;62 outline-offset: 4px;63 padding: 0.75rem 1.5rem;64 font-family: "Inter", sans-serif;65 font-size: 1rem;66 line-height: 1.2;67 font-weight: 500;68 border: 1px solid transparent;69 border-radius: 0.5rem;70 color: var(--shiny-cta-fg);71 background:72 linear-gradient(var(--shiny-cta-bg), var(--shiny-cta-bg))73 padding-box,74 conic-gradient(75 from calc(var(--gradient-angle) - var(--gradient-angle-offset)),76 transparent,77 var(--shiny-cta-highlight) var(--gradient-percent),78 var(--gradient-shine) calc(var(--gradient-percent) * 2),79 var(--shiny-cta-highlight) calc(var(--gradient-percent) * 3),80 transparent calc(var(--gradient-percent) * 4)81 )82 border-box;83 box-shadow: inset 0 0 0 1px var(--shiny-cta-bg-subtle);84// … truncated
What it pulls in
npm packages
Files it writes
More from eldoraui
All 115 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| animated-badgeanimated-badge | eldoraui | Components | Free | 2 deps | |
| animated-frameworksanimated-frameworks | eldoraui | Components | Free | 2 deps | |
| animated-grid-patternanimated-grid-pattern | eldoraui | Components | Free | 3 deps | |
| animated-listanimated-list | eldoraui | Components | Free | 1 dep | |
| blur-in-textblur-in-text | eldoraui | Components | Free | 3 deps | |
| browserbrowser | eldoraui | Components | Free | 2 deps | |
| card-flip-hovercard-flip-hover | eldoraui | Components | Free | 1 dep | |
| clerk-otpclerk-otp | eldoraui | Components | Free | 2 deps |
