Sparkle shimmer text
Sparkle shimmer text: a CSS button. Copy the rules, or the prompt that rebuilds it.
CSS
.btn-179 {
position: relative;
font: 600 14px/1 system-ui,sans-serif;
color: #4c1d95;
background: #f5f3ff;
border: 1px solid #ddd6fe;
border-radius: 10px;
padding: 12px 22px;
cursor: pointer;
overflow: hidden;
transition: border-color .2s,background .2s
}
.btn-179::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: -60%;
width: 40%;
background: linear-gradient(100deg,#fff0,#fff9,#fff0);
transform: skewX(-15deg);
animation: shimmer179 2.6s ease-in-out infinite
}
.btn-179::after {
content: "\2726";
position: absolute;
right: 8px;
top: 4px;
font-size: 9px;
color: #a78bfa;
animation: tw179 1.4s ease-in-out infinite
}
.btn-179:hover {
border-color: #a78bfa;
background: #ede9fe
}
.btn-179:focus-visible {
outline: 2px solid #7c3aed;
outline-offset: 3px
}
.btn-179:active {
background: #ddd6fe
}
@keyframes shimmer179 {
to {
left: 120%
}
}
@keyframes tw179 {
50% {
opacity: .2;
transform: scale(.6)
}
}
@media (prefers-reduced-motion: reduce) {
.btn-179, .btn-179 * { animation: none; transition: none; }
}
HTML
<button class="btn-179">Summarize with AI</button>Prompt
A light lavender #f5f3ff AI button with 1px #ddd6fe border, 10px radius, #4c1d95 14px semibold text, 12px by 22px padding. A skewed white shimmer band sweeps across every 2.6s (overflow hidden), and a tiny 9px star (unicode 2726) in #a78bfa pulses in the top-right corner. Hover deepens to #ede9fe with a lavender border; active #ddd6fe. Focus 2px violet outline.