Boutons · HTML / CSS
Shimmer Border Action Button
Par Dillion Verma · Magic UI · MIT
Survolez ou cliquez pour essayer. Aucun formulaire ne transmet de données.
<!--
MIT License Copyright (c) 2026 Author
Author: Dillion Verma
Source: https://magicui.design/docs/components/shimmer-button
Revision: main
-->
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Shimmer Border Action Button</title><style>html{height:100%;background:#e9e9ef}body{margin:0;min-height:100%;display:grid;place-items:center;padding:24px;box-sizing:border-box;font-family:Arial,sans-serif}#clicks-preview-root{display:flex;align-items:center;justify-content:center;max-width:100%;min-width:0}*{box-sizing:border-box}.shimmer-btn {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 14px 28px;
border-radius: 9999px;
background: #090a0f;
border: 1px solid rgba(255, 255, 255, 0.12);
color: #ffffff;
font-family: system-ui, sans-serif;
font-size: 14px;
font-weight: 600;
cursor: pointer;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
transition: transform 0.2s, border-color 0.2s;
}
.shimmer-btn:hover {
transform: translateY(-2px);
border-color: rgba(56, 189, 248, 0.5);
}
.shimmer-sweep {
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
animation: shimmerSweep 3s infinite;
}
@keyframes shimmerSweep {
0% { left: -100%; }
50%, 100% { left: 100%; }
}
.shimmer-content {
position: relative;
z-index: 1;
}
@media(max-height:350px){#clicks-preview-root{transform:scale(.8);transform-origin:center}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}</style></head><body><div id="clicks-preview-root"><button type="button" class="shimmer-btn">
<span class="shimmer-sweep"></span>
<span class="shimmer-content">Explore Clicks AI ↗</span>
</button></div></body></html>Télécharger le HTML ↓Auteur, source & licence
Le code d’origine est conservé avec sa révision. L’aperçu utilise un cadre de présentation Clicks et bloque les scripts et ressources externes.
Source originale ↗Magic UI · Révision main
Importé le 2026-10-17. La date d’import n’est pas la date de création.
Lire la licence MIT
MIT License Copyright (c) 2026 Author