CSS 3d Layered Image Hover Effects - CSS Design ts durjoy
CSS 3D Layer HTML Code
<!DOCTYPE html>
<html>
<head>
<title>3d image</title>
<style type="text/css">
body{
margin: 0;
padding: 0;
width: 100%;
align-items: center;
justify-content: center;
display: flex;
}
.container{
width: 400px;
height: 400px;
position: relative;
margin-top: 200px;
transform:rotate(-30deg) skew(25deg) scale(.8);
transition: 0.5s;
}
.container img{
width: 400px;
height: 400px;
position: absolute;
transition: 0.5s;
}
.container:hover img:nth-child(4){
transform: translate(120px,-120px);
opacity: 1;
}
.container:hover img:nth-child(3){
transform: translate(80px,-80px);
opacity: .8;
}
.container:hover img:nth-child(2){
transform: translate(40px,-40px);
opacity: .6;
}
.container:hover img:nth-child(1){
transform: translate(20px,-20px);
opacity: .5;
}
</style>
</head>
<body>
<div class="container">
<img src="basabaribd_logo.png">
<img src="basabaribd_logo.png">
<img src="basabaribd_logo.png">
<img src="basabaribd_logo.png">
</div>
</body>
</html>
Please visit my website: basabaribd.com
No comments