Tutorial 2
CSS Neumorphism Button with Hover effects using Html and CSS || Web Tutorials : Source Code
Hey Guys , Welcome To My Blog :- Web Tutorials || Yuvan Art
Full Process To Create Styles Button :-
Click On The Below Link To Watch Full Process To Create CSS Neumorphism button with hover effects using Html and CSS .
CSS Neumorphism button with hover effects || HTML and CSS effects || Web Tutorials
Part ( 1 ) HTML Code :-
<!-- CSS Neumorphism Button With Hover Effect - HTML Part -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Neumorphism Button</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<a href="#"><span>Button</span></a>
</body>
</html>
Part ( 2 ) CSS Code :-
/* CSS Neumorphism Button With Hover Effect - CSS Part */
*{
margin: 0;
padding: 0;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #f2f3f7;
}
a{
position: relative;
display: inline-block;
padding: 10px 30px;
text-decoration: none;
text-transform: uppercase;
font-weight: 500;
letter-spacing: 2px;
color: #5a84a2;
font-size: 18px;
box-shadow: -2px -2px 8px rgba(255, 255, 255, 1), -2px -2px 12px rgba(255, 255, 255, 0.5), inset 2px 2px 4px rgba(255, 255, 255, 0.1), 2px 2px 8px rgba(0, 0, 0, 0.15);
border-radius: 40px;
}
a:hover{
box-shadow: inset -2px -2px 8px rgba(255, 255, 255, 1), inset -2px -2px 12px rgba(255, 255, 255, 0.5), inset 2px 2px 4px rgba(255, 255, 255, 0.1), inset 2px 2px 8px rgba(0, 0, 0, 0.15);
}
a:hover span{
display: inline-block;
transform: scale(0.98);
}
Thank You !!!
Comments
Post a Comment