PersonalWebsite/css/home.css
lukas-heiligenbrunner 2181234711 longer animation delay
2020-03-30 11:17:55 +02:00

126 lines
2.0 KiB
CSS

/*!
* home.css - https://heili.eu
* Licensed under the MIT license - http://opensource.org/licenses/MIT
* E-mail: lukas.heiligenbrunner@gmail.com
* Copyright (c) 2020 Lukas Heiligenbrunner
*/
.lightOpacity {
opacity: 0.6;
}
.bigText {
font-family: 'Helvetica Neue', fantasy;
}
#section1 {
background-color: #001631;
color: white;
padding-top: 200px;
}
#preTitle {
font-size: 35px;
opacity: 0.8;
color: #78ffd9;
visibility: hidden;
animation: textfade 1s 900ms 1 forwards ;
}
#homepicture {
float: left;
height: 400px;
}
#selfimg1 {
display: block;
margin-left: auto;
margin-right: auto;
height: 100%
}
#titleText {
font-size: 80px;
color: #ced5f6;
visibility: hidden;
animation: textfade 1s 600ms 1 forwards ;
}
#subTitleText {
font-size: 50px;
color: #bec1d4;
visibility: hidden;
animation: textfade 1s 300ms 1 forwards ;
}
#meaningFullSentence {
width: 40%;
color: #babccd;
animation: textfade 1s 0ms 1 forwards ;
}
#homepicture:hover {
box-shadow: rgba(2, 12, 27, 0.7) 0px 10px 30px 0px;
transition: all 500ms;
}
/* The animation code */
@keyframes textfade {
from {
visibility: hidden;
position: relative;
top: -20px;
}
to {
visibility: visible;
position: relative;
top: 0;
}
}
/* height smaller than 720px */
@media screen and (max-height: 720px) {
#homepicture {
height: 300px;
}
}
/* Screen smaller than 600px -- general small width screens */
@media screen and (max-width: 1200px) {
#section1 {
padding-top: 100px;
height: 90%;
}
#preTitle {
font-size: 15px;
}
#titleText {
font-size: 30px;
}
#subTitleText {
font-size: 20px;
}
#meaningFullSentence {
width: 100%;
font-size: 13px;
}
#homepicture {
height: 300px;
width: 100%;
}
/* hide name tag on mobiles */
#nameTag {
display: none;
}
}