My Codes
3d Hover Button Pure CSS
3d Hover Button in HTML & CSS (Pure CSS).
HTML :
CSS :
body{
padding: 0;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background:#191970;
}
a{
position: absolute;
padding: 20px 20px 20px 30px;
color: #fff;
font-size: 20px;
font-family: sans-serif;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 5px;
transition: .5s;
}
a:hover{
background: #6A5ACD; transition-delay: 2s;
box-shadow: -30px 30px 50px rgba(0,0,0,.4);
transform: rotate(-20deg) skew(15deg);
}
a:before,
a:after{
content: "";
position: absolute;
height: 100%;
width: 2px;
background: #fff;
pointer-events: none;
transform-style: linear;
transition-property: width,opacity,transform,box-shadow;
transition-duration: 0.5s
}
a:before{
top: 0;
left:0;
}
a:after{
top: 0;
right:0;
}
a:hover:before{
width:100%;
opacity:0.1;
transform:translate(5px,-5px);
box-shadow:+2px 2px 2px rgba(0,0,0,.1);
transition-delay: 0s,0.5s,1s,1.5s
}
a:hover:after{
width:100%;
opacity:0.1;
transform:translate(10px,-10px);
box-shadow:+2px 2px 2px rgba(0,0,0,.1);
transition-delay: 0s,0.5s,1s,1.5s
}
p{
position: absolute;
left: 950px;
top: 44%;
padding: 20px 20px 20px 30px;
color: #fff;
font-size: 20px;
font-family: sans-serif;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 5px;
transition: .5s;
}
p:hover{
background: #990000;
transition-delay: 2s;
box-shadow: -30px 30px 50px rgba(0,0,0,.4);
transform: rotate(20deg) skew(-15deg);
}
p:before,
p:after{
content: "";
position: absolute;
height: 100%;
width: 2px;
background: #fff;
pointer-events: none;
transform-style: linear;
transition-property: width,opacity,transform,box-shadow;
transition-duration: 0.5s
}
p:before{
top: 0;
left:0;
}
p:after{
top: 0;
right:0;
}
p:hover:before{
width:100%;
opacity:0.1;
transform:translate(5px,-5px);
box-shadow:+2px 2px 2px rgba(0,0,0,.1);
transition-delay: 0s,0.5s,1s,1.5s
}
p:hover:after{
width:100%;
opacity:0.1;
transform:translate(10px,-10px);
box-shadow:+2px 2px 2px rgba(0,0,0,.1);
transition-delay: 0s,0.5s,1s,1.5s
}
preview :
VIDEO
Code available in :-
Must Read :-
Blogger Tutorial
C Programs
C++ Programs
Java Programs
Python Programs
Programming Notes
Questions & Answers
My Codes : HTML, CSS & JS
◕‿◕कर दिखाओ कुछ ऐसा की दुनिआ करना चाहे आपके जैसा◕‿◕
Supvvv Hover Button
ReplyDeleteTysm 😊😊
DeleteWe as a team of real-time industrial experience with a lot of knowledge in developing applications in python programming , aws training , ccna training (7+ years) will ensure that we will deliver our best in python training in chennai. , and we believe that no one matches us in this context.
ReplyDeleteccna training in chennai
aws training in chennai
aws devops training in chennai
python training
python training in chennai
jika ada kebutuhan khususSewa Proyektor Pekanbaru kami siap membantu
ReplyDelete