Delete 23-clip-path-image-hover-effects directory

This commit is contained in:
Sam 2023-03-16 10:05:09 +03:00 committed by GitHub
parent ed3d812909
commit a77612437e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 56 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

View File

@ -1,16 +0,0 @@
<!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">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<div class="container">
<div class="box"></div>
<div class="box"></div>
</div>
</body>
</html>

View File

@ -1,40 +0,0 @@
*{
margin:0;
padding:0;
box-sizing: border-box;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #111;
}
.container{
position: relative;
width:550px;
height: 400px;
border: 4px solid #fff;
}
.container .box{
position: absolute;
width: 100%;
height: 100%;
}
.container .box:nth-child(1){
background: url(img/01.jpg);
transition: .5s;
}
.container .box:nth-child(2){
background: url(img/02.jpg);
z-index: 2;
transition: .5s;
clip-path: polygon(0 0, 100% 0, 100% 0%, 0% 100%);
}
.container .box:nth-child(2):hover{
clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}
.container .box:nth-child(1):hover ~ .box:nth-child(2){
clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}