Home
About
Contact Us
Disclaimer
Privacy Policy
Terms and Conditions
INTERESTING Code
Home
HTML
CSS
JavaScript
Project
_HTML
_CSS
_JavaScript
About
Login
Home
CSS
CSS Morden Button
CSS Morden Button
INTERESTING Plus
July 24, 2022
Hovver Effects
Preview
HTML Code:
INTERESTING Code Plus
Button
Button
Button
Copy Codes
CSS Code:
@import url('https://fonts.googleapis.com/css2?family=Poppins:wight@300;400;500;600;700;800;900&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; } body { display: flex; justify-content: center; align-items: center; min-height: 100vh; flex-direction: column; gap: 40px; background: #27282c; } a { position: relative; background: #444; color: #fff; text-decoration: none; text-transform: uppercase; font-size: 1.5em; letter-spacing: 0.1em; font-weight: 400; padding: 10px 30px; transition: 0.5s; } a:hover { letter-spacing: 0.25em; background: var(--clr); color: var(--clr); box-shadow: 0 0 35px var(--clr); } a::before { content: ''; position: absolute; inset: 2px; background: #27282c; } a span { position: relative; z-index: 1; } a i { position: absolute; inset: 0; display: block; } a i::before { content: ''; position: absolute; top: -6px; left: 100%; transform: translateX(-50%); width: 10px; height: 10px; background: #27282c; border: 2px solid var(--clr); transition: 0.5s; } a:hover i::before { left: 0%; transform: translateX(-50%) rotate(45deg); box-shadow: 40px 39px var(--clr); } a i::after { content: ''; position: absolute; bottom: -6px; left: 0; transform: translateX(-50%); width: 10px; height: 10px; background: #27282c; border: 2px solid var(--clr); transition: 0.5s; } a:hover i::after { left: 100%; transform: translateX(-50%) rotate(-45deg); box-shadow: 38px -39px var(--clr); }
Copy Codes
Post a Comment
0 Comments
Social Media
Popular Posts
Tags
CSS
11
HTML
6
JavaScript
2
Loading...
0 Comments