127 lines
2.1 KiB
CSS
127 lines
2.1 KiB
CSS
/*
|
|
COLORS:
|
|
|
|
Light green: #7ed56f
|
|
Medium green: #55c57a
|
|
Dark green: #28b485
|
|
|
|
*/
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: "Lato",Verdana, Geneva, Tahoma, sans-serif;
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
line-height: 1.7;
|
|
color: #777;
|
|
padding: 30px;
|
|
}
|
|
|
|
.header {
|
|
height: 95vh;
|
|
background-image: linear-gradient(to right bottom,rgba(114, 213, 111, 0.801), rgba(40, 180, 133, 0.808)) , url("../img/hero.jpg");
|
|
background-size: cover;
|
|
background-position: top;
|
|
clip-path: polygon(0% 0%, 100% 0%, 100% 80%, 0% 100%);
|
|
|
|
position: relative;
|
|
}
|
|
|
|
.logo-box {
|
|
position: absolute;
|
|
top: 40px;
|
|
left: 40px;
|
|
}
|
|
|
|
.logo {
|
|
height: 35px;
|
|
}
|
|
|
|
/*
|
|
.logo:hover{
|
|
animation: moveInRight 1s ease-out;
|
|
}
|
|
*/
|
|
|
|
.text-box{
|
|
position: absolute;
|
|
top: 40%;
|
|
left: 50%;
|
|
transform: translate(-50%,-50%);
|
|
|
|
/*
|
|
* Limpiar animaciones para evitar temblores
|
|
* No se sabe realmente por qué funciona o de dónde viene el error, pero lo hace
|
|
*/
|
|
backface-visibility: hidden;
|
|
}
|
|
|
|
.heading-primary {
|
|
color: #fff;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.heading-primary-main {
|
|
display: block;
|
|
font-size: 60px;
|
|
font-weight: 400;
|
|
letter-spacing: 35px;
|
|
|
|
animation-name: moveInLeft;
|
|
animation-duration: 1.2s;
|
|
animation-timing-function: ease-out;
|
|
|
|
/*
|
|
animation-delay: 3s;
|
|
animation-count: 3;
|
|
*/
|
|
}
|
|
|
|
.heading-primary-sub {
|
|
display: block;
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
letter-spacing: 16px;
|
|
/*
|
|
animation-name: moveInRight;
|
|
animation-duration: 1.2s;
|
|
*/
|
|
animation: moveInRight 1.2s ease-out;
|
|
}
|
|
|
|
@keyframes moveInLeft{
|
|
0%{
|
|
opacity: 0;
|
|
transform: translateX(-100px);
|
|
}
|
|
|
|
80%{
|
|
transform: translateX(20px);
|
|
}
|
|
|
|
100%{
|
|
opacity: 1;
|
|
transform: translate(0);
|
|
}
|
|
}
|
|
|
|
@keyframes moveInRight{
|
|
0%{
|
|
opacity: 0;
|
|
transform: translateX(100px);
|
|
}
|
|
|
|
80%{
|
|
transform: translateX(-20px);
|
|
}
|
|
|
|
100%{
|
|
opacity: 1;
|
|
transform: translate(0);
|
|
}
|
|
} |