100-project-100-days-website/100_projects/50-‏line-through-effect/style.css
2023-04-12 01:41:29 +03:00
Ask

41 lines
636 B
CSS

{770319fb06b3518efef678b534a4a650854e6210 true 636 style.css 0xc001e7fd50}

* {
box-sizing: border-box;
}
body {
background-color: #FA8072;
font-family: 'Muli', sans-serif;
height: 100vh;
overflow: hidden;
}
h1 {
font-size: 8vw;
font-weight: bold;
margin: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
z-index: 1;
width: 100%;
}
.overlay {
z-index: 2;
}
.line {
background-color: #fff;
border-radius: 50px;
position: absolute;
top: 50%;
left: -1vw;
transform: translateY(-50%);
height: 2vw;
width: 0;
animation: grow 3s linear forwards;
z-index: 2;
}
@keyframes grow {
to {
width: 85vw;
}
}