Prévisualisation
<button class="twb-btn-twitter">
<span class="twb-btn-twitter-bg"></span>
<span class="twb-btn-twitter-wave"></span>
<svg viewBox="0 0 16 16" class="twb-btn-twitter-icon" fill="currentColor" height="18" width="18" xmlns="http://www.w3.org/2000/svg">
<path d="M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"></path>
</svg>
<span class="twb-btn-twitter-text">Twitter</span>
</button>
.twb-btn-twitter {
--twb-blue: #1DA1F2;
--twb-blue-dark: #1a8cd8;
--twb-blue-light: rgba(29, 161, 242, 0.15);
--twb-blue-glow: rgba(29, 161, 242, 0.5);
position: relative;
display: flex;
align-items: center;
padding: 12px 24px;
gap: 10px;
font-size: 16px;
font-weight: 600;
font-family: 'Poppins', sans-serif;
text-decoration: none;
cursor: pointer;
border: 2px solid var(--twb-blue);
border-radius: 30px;
outline: none;
overflow: hidden;
color: var(--twb-blue);
background: transparent;
transition: color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
isolation: isolate;
}
.twb-btn-twitter-bg {
position: absolute;
inset: 0;
background: transparent;
border-radius: 30px;
z-index: -2;
}
.twb-btn-twitter-wave {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 0%;
background: var(--twb-blue);
border-radius: 0 0 28px 28px;
z-index: -1;
transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-radius 0.4s ease;
}
.twb-btn-twitter-wave::before {
content: '';
position: absolute;
top: -10px;
left: 0;
right: 0;
height: 20px;
background: var(--twb-blue);
border-radius: 50% 50% 0 0;
transform: scaleY(0);
transition: transform 0.3s ease;
}
.twb-btn-twitter-icon {
transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.twb-btn-twitter-text {
letter-spacing: 0.5px;
transition: all 0.4s ease;
}
.twb-btn-twitter:hover {
color: #fff;
box-shadow:
0 0 20px var(--twb-blue-glow),
0 0 40px rgba(29, 161, 242, 0.3),
0 8px 25px rgba(29, 161, 242, 0.25);
transform: translateY(-2px);
}
.twb-btn-twitter:hover .twb-btn-twitter-wave {
height: 100%;
border-radius: 28px;
}
.twb-btn-twitter:hover .twb-btn-twitter-wave::before {
transform: scaleY(1);
animation: twb-wave-motion 0.6s ease-out;
}
.twb-btn-twitter:hover .twb-btn-twitter-icon {
transform: scale(1.15) rotate(-5deg);
filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}
.twb-btn-twitter:hover .twb-btn-twitter-text {
letter-spacing: 1.5px;
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.twb-btn-twitter:active {
transform: translateY(0) scale(0.97);
box-shadow:
0 0 15px var(--twb-blue-glow),
0 0 30px rgba(29, 161, 242, 0.4),
inset 0 0 15px rgba(255, 255, 255, 0.2);
transition: all 0.1s ease;
}
.twb-btn-twitter:active .twb-btn-twitter-icon {
transform: scale(0.95);
}
.twb-btn-twitter:active .twb-btn-twitter-text {
transform: scale(0.98);
}
@keyframes twb-wave-motion {
0% {
transform: scaleY(0) scaleX(0.8);
}
50% {
transform: scaleY(1.2) scaleX(1.1);
}
100% {
transform: scaleY(1) scaleX(1);
}
}
License MIT
Original author:
mrhyddenn
Modified by FVOweb
Copyright - 2026 mrhyddenn
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.