Prévisualisation
<button class="gen-btn-generate">
<svg height="24" width="24" fill="#FFFFFF" viewBox="0 0 24 24" class="gen-sparkle">
<path d="M10,21.236,6.755,14.745.264,11.5,6.755,8.255,10,1.764l3.245,6.491L19.736,11.5l-6.491,3.245ZM18,21l1.5,3L21,21l3-1.5L21,18l-1.5-3L18,18l-3,1.5ZM19.333,4.667,20.5,7l1.167-2.333L24,3.5,21.667,2.333,20.5,0,19.333,2.333,17,3.5Z"></path>
</svg>
<span class="gen-text">Generate</span>
<div class="gen-particles">
<span class="gen-particle"></span>
<span class="gen-particle"></span>
<span class="gen-particle"></span>
<span class="gen-particle"></span>
</div>
</button>
.gen-btn-generate {
position: relative;
border: none;
width: 15em;
height: 5em;
border-radius: 3em;
display: inline-flex;
justify-content: center;
align-items: center;
gap: 12px;
background: #1C1A1C;
cursor: pointer;
transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1);
overflow: hidden;
isolation: isolate;
}
.gen-btn-generate::before {
content: '';
position: absolute;
inset: 0;
border-radius: 3em;
padding: 2px;
background: linear-gradient(135deg, #A47CF3, #683FEA, #9917FF);
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
opacity: 0;
transition: opacity 450ms ease;
}
.gen-btn-generate::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg, #A47CF3, #683FEA);
border-radius: 3em;
opacity: 0;
transition: opacity 450ms ease;
z-index: -1;
}
.gen-sparkle {
fill: #AAAAAA;
transition: all 600ms cubic-bezier(0.23, 1, 0.32, 1);
position: relative;
z-index: 1;
}
.gen-text {
font-weight: 600;
color: #AAAAAA;
font-size: medium;
transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1);
position: relative;
z-index: 1;
}
.gen-particles {
position: absolute;
inset: 0;
pointer-events: none;
overflow: hidden;
border-radius: 3em;
}
.gen-particle {
position: absolute;
width: 4px;
height: 4px;
background: white;
border-radius: 50%;
opacity: 0;
transition: all 800ms cubic-bezier(0.23, 1, 0.32, 1);
}
.gen-particle:nth-child(1) { top: 20%; left: 20%; }
.gen-particle:nth-child(2) { top: 20%; right: 20%; }
.gen-particle:nth-child(3) { bottom: 20%; left: 20%; }
.gen-particle:nth-child(4) { bottom: 20%; right: 20%; }
.gen-btn-generate:hover {
background: #1C1A1C;
box-shadow: inset 0px 1px 0px 0px rgba(255,255,255,0.4),
inset 0px -4px 0px 0px rgba(0,0,0,0.2),
0px 0px 0px 4px rgba(255,255,255,0.2),
0px 0px 180px 0px #9917FF;
transform: translateY(-2px);
}
.gen-btn-generate:hover::before { opacity: 1; }
.gen-btn-generate:hover::after { opacity: 1; }
.gen-btn-generate:hover .gen-text {
color: white;
transform: scale(1.05);
}
.gen-btn-generate:hover .gen-sparkle {
fill: white;
transform: scale(1.2) rotate(20deg);
filter: drop-shadow(0 0 8px rgba(164,124,243,0.6));
animation: gen-sparkleGlow 2s ease-in-out infinite;
}
.gen-btn-generate:hover .gen-particle {
opacity: 1;
animation: gen-particleFloat 1.5s ease-in-out infinite;
}
.gen-btn-generate:hover .gen-particle:nth-child(1) { animation-delay: 0s; }
.gen-btn-generate:hover .gen-particle:nth-child(2) { animation-delay: 0.2s; }
.gen-btn-generate:hover .gen-particle:nth-child(3) { animation-delay: 0.4s; }
.gen-btn-generate:hover .gen-particle:nth-child(4) { animation-delay: 0.6s; }
.gen-btn-generate:active {
transform: translateY(0px);
box-shadow: inset 0px 1px 0px 0px rgba(255,255,255,0.4),
inset 0px -4px 0px 0px rgba(0,0,0,0.2),
0px 0px 0px 2px rgba(255,255,255,0.2),
0px 0px 80px 0px #9917FF;
}
@keyframes gen-particleFloat {
0%, 100% {
transform: translateY(0) scale(1);
opacity: 1;
}
50% {
transform: translateY(-10px) scale(1.5);
opacity: 0.6;
}
}
@keyframes gen-sparkleGlow {
0%, 100% {
filter: drop-shadow(0 0 4px rgba(164,124,243,0.4));
}
50% {
filter: drop-shadow(0 0 12px rgba(164,124,243,0.8));
}
}
License MIT
Original author:
AlimurtuzaCodes
Modified by FVOweb
Copyright - 2026 AlimurtuzaCodes (Alimurtuza)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.