WEBLEB
Home
Editor
Login
Pro
English
English
Français
Español
Português
Deutsch
Italiano
हिंदी
Stylish CSS Button with Animated Text and Icon
4
alejandrokundrah
Open In Editor
Publish Your Code
Recommended
7 May 2024
Loader with CSS
2 March 2024
HTML CSS Contact Form
16 May 2025
glowing button 2
HTML
Copy
W
O
E
S
O
M
E
C
S
S
B
U
T
T
O
N
CSS
Copy
.button { cursor: pointer; border: none; background: #111111; color: #fff; width: 100px; height: 100px; border-radius: 50%; overflow: hidden; position: relative; display: grid; place-content: center; transition: background 300ms, transform 200ms; font-weight: 600; } body{ Display:flex; align-items:center; justify-content:center; min-height:100vh; } .button__text { position: absolute; inset: 0; animation: text-rotation 8s linear infinite; > span { position: absolute; transform: rotate(calc(19deg * var(--index))); inset: 7px; } } .button__circle { position: relative; width: 40px; height: 40px; overflow: hidden; background: #fff; color: #111; border-radius: 50%; display: flex; align-items: center; justify-content: center; } .button__icon--copy { position: absolute; transform: translate(-150%, 150%); } .button:hover { background: #000; transform: scale(1.05); } .button:hover .button__icon { color: #000; } .button:hover .button__icon:first-child { transition: transform 0.3s ease-in-out; transform: translate(150%, -150%); } .button:hover .button__icon--copy { transition: transform 0.3s ease-in-out 0.1s; transform: translate(0); } @keyframes text-rotation { to { rotate: 360deg; } }
JS
Copy
/* Replace with your JS Code (Leave empty if not needed) */