From 2966ca55baea70321edef1d6e7ba20b5ce8d6cba Mon Sep 17 00:00:00 2001 From: Lukas Heiligenbrunner Date: Tue, 31 Mar 2020 22:52:31 +0200 Subject: [PATCH] animations also in contact and experience section --- css/contact.css | 9 +++++++++ css/experience.css | 5 +++++ css/general.css | 44 ++++++++++++++++++++++++++++++++++++++++++-- css/home.css | 22 ++++------------------ index.html | 9 ++++++--- js/index.js | 32 ++++++++++++++++++++++++++++++++ 6 files changed, 98 insertions(+), 23 deletions(-) create mode 100644 js/index.js diff --git a/css/contact.css b/css/contact.css index 9335077..3f444f7 100644 --- a/css/contact.css +++ b/css/contact.css @@ -9,8 +9,17 @@ background-color: #deebff; } +#contactheader{ + visibility: hidden; +} + +#contactsubheader{ + visibility: hidden; +} + .personalcontacts { margin-top: 60px; + visibility: hidden; } .personalcontacts a { diff --git a/css/experience.css b/css/experience.css index d46b226..0332b35 100644 --- a/css/experience.css +++ b/css/experience.css @@ -65,12 +65,17 @@ border-radius: 5mm; } +#experienceheader { + visibility: hidden; +} + .ratiobtn { display: none; } #experiencecontentcontainer { margin-top: 100px; + visibility: hidden; } .experiencetitle { diff --git a/css/general.css b/css/general.css index 546c916..91ddab2 100644 --- a/css/general.css +++ b/css/general.css @@ -12,12 +12,24 @@ body, html, #maincontent { /*font-family: Calibre, "San Francisco", "SF Pro Text", -apple-system, system-ui, BlinkMacSystemFont, Roboto, "Helvetica Neue", "Segoe UI", Arial, sans-serif;*/ } -h1{ +h1 { text-transform: uppercase; - font-family: 'Open Sans', arial, sans-serif; + font-family: 'Open Sans', arial, sans-serif; font-weight: bold; } +.animationappearnow { + animation: textappear 1s 0ms 1 forwards; +} + +.animationappear300ms { + animation: textappear 1s 300ms 1 forwards; +} + +.animationappear600ms { + animation: textappear 1s 600ms 1 forwards; +} + /* general definition of a tile */ .tile { height: 80%; @@ -56,6 +68,34 @@ h1{ font: bold 15px/1.4 'Open Sans', arial, sans-serif; } +/* The animation code */ +@keyframes textfade { + from { + visibility: hidden; + position: relative; + top: -20px; + } + to { + visibility: visible; + position: relative; + top: 0; + } +} + +/* The animation code */ +@keyframes textappear { + from { + visibility: hidden; + opacity: 0; + top: -20px; + } + to { + visibility: visible; + opacity: 1; + top: 0; + } +} + /* screen larger than 600px -- desktop */ @media screen and (min-width: 1201px) { diff --git a/css/home.css b/css/home.css index 53c6e69..92ea3c2 100644 --- a/css/home.css +++ b/css/home.css @@ -26,7 +26,7 @@ color: #78ffd9; visibility: hidden; - animation: textfade 1s 900ms 1 forwards ; + animation: textfade 1s 900ms 1 forwards; } #homepicture { @@ -46,7 +46,7 @@ color: #ced5f6; visibility: hidden; - animation: textfade 1s 600ms 1 forwards ; + animation: textfade 1s 600ms 1 forwards; } #subTitleText { @@ -54,14 +54,14 @@ color: #bec1d4; visibility: hidden; - animation: textfade 1s 300ms 1 forwards ; + animation: textfade 1s 300ms 1 forwards; } #meaningFullSentence { width: 40%; color: #babccd; - animation: textfade 1s 0ms 1 forwards ; + animation: textfade 1s 0ms 1 forwards; } #homepicture:hover { @@ -69,20 +69,6 @@ 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 { diff --git a/index.html b/index.html index c4b2312..f4ca33b 100644 --- a/index.html +++ b/index.html @@ -19,6 +19,9 @@ + + + @@ -120,7 +123,7 @@