Add files via upload

This commit is contained in:
Sam 2023-03-09 17:04:22 +03:00 committed by GitHub
parent 36143852c7
commit c22b904d7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 74 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -0,0 +1,18 @@
<!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>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="hero">
<h1>Candy.</h1>
<h1>Cherry.</h1>
<h1>Melon.</h1>
<div class="img-box"></div>
</div>
</body>
</html>

View File

@ -0,0 +1,56 @@
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
.hero{
width: 100%;
height: 100vh;
background: #f3f7fe;
padding: 10px 3%;
position: relative;
display: flex;
align-items: center;
justify-content: space-around;
}
.hero h1{
font-size: 75px;
position: relative;
z-index: 2;
-webkit-text-fill-color: transparent;
-moz-text-fill-color: transparent;
-webkit-text-stroke: 2px #111;
-moz-text-stroke: 2px #111;
cursor: pointer;
transition: .3s ;
}
@media(max-width:767px){
.hero h1{
font-size: 30px;
}
}
.hero h1:hover{
-webkit-text-fill-color: #111;
-moz-text-fill-color: #111;
transform: translateY(-10px);
}
.img-box{
position: absolute;
top: 0;
right: 0;
height: 100%;
width: 65%;
background: url(images/background.png);
background-size: cover;
background-position: center;
transition:background-image 1s ;
}
.hero h1:nth-child(1):hover ~ .img-box{
background-image: url(images/Candy.png);
}
.hero h1:nth-child(2):hover ~ .img-box{
background-image: url(images/Cherry.png);
}
.hero h1:nth-child(3):hover ~ .img-box{
background-image: url(images/Melon.png);
}