Day 1: Finshed JS based

This commit is contained in:
2021-04-09 18:39:57 +02:00
parent b591904038
commit 566422ed0d
3 changed files with 139 additions and 0 deletions

64
50Days/day1/style.css Normal file
View File

@@ -0,0 +1,64 @@
@import url("https://fonts.googleapis.com/css2?family=Muli&display=swap");
* {
box-sizing: border-box;
}
body {
font-family: "Muli", sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
overflow: hidden;
margin: 0;
}
.container {
display: flex;
width: 90vw;
}
.panel {
background-size: auto 100%;
background-position: center;
background-repeat: no-repeat;
height: 80vh;
border-radius: 50px;
color: #fff;
cursor: pointer;
flex: 0.5;
margin: 10px;
position: relative;
transition: flex 0.7s ease-in;
}
.panel h3 {
font-size: 24px;
position: absolute;
bottom: 20px;
left: 20px;
margin: 0;
opacity: 0;
transition: opacity 0.4s ease-in;
}
.panel.active {
flex: 5;
}
.panel.active h3 {
opacity: 0.9;
transition: opacity 0.5s ease-in 0.2s;
}
@media (max-width: 480px) {
.container {
width: 100vw;
}
.panel:nth-of-type(4),
.panel:nth-of-type(5) {
display: none;
}
}