Add files via upload
This commit is contained in:
parent
36143852c7
commit
c22b904d7e
BIN
100_projects/16-creative-image-gallery/images/Candy.png
Normal file
BIN
100_projects/16-creative-image-gallery/images/Candy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 246 KiB |
BIN
100_projects/16-creative-image-gallery/images/Cherry.png
Normal file
BIN
100_projects/16-creative-image-gallery/images/Cherry.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 MiB |
BIN
100_projects/16-creative-image-gallery/images/Melon.png
Normal file
BIN
100_projects/16-creative-image-gallery/images/Melon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 339 KiB |
BIN
100_projects/16-creative-image-gallery/images/background.png
Normal file
BIN
100_projects/16-creative-image-gallery/images/background.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
18
100_projects/16-creative-image-gallery/index.html
Normal file
18
100_projects/16-creative-image-gallery/index.html
Normal 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>
|
56
100_projects/16-creative-image-gallery/style.css
Normal file
56
100_projects/16-creative-image-gallery/style.css
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user