<div class="text">
<div class="text2"><h2 id="young">When you're young, time moves slowly...</h2> </div>
<div class="text2"><h2 id="slowly">You wish it would speed up...</h2></div>
<div class="text2"><h2 id="fast">Then it does...</h2></div>
<div class="text2"><h2 id="faster">And you ask, "When will life slow down?"</h2></div>
<div class="text2"><h2 id="fastest">"When will life slow down?"</h2></div>
<div class="text2"><h2 id="fastest2">"When will life slow down?"</h2></div>
<div class="text2"><h2 id="fastest3">"When will life slow down?"</h2></div>
<div class="text2"><h2 id="fastest4">"When will life slow down?"</h2></div>
</div>
<!-- <div class="moon_container">
<div id="moon"></div>
</div> -->
<div class="svg_container">
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="300px"viewBox="0 0 997.57 627"><defs><style>.cls-1{fill:#e15554;}.cls-2{fill:#afafaf;}.cls-3{fill:#ad1f1f;}.cls-4{fill:#fff;}.cls-13,.cls-14,.cls-5{fill:#090029;}.cls-6{fill:#f0a8a8;}.cls-7{fill:#f2d453;}.cls-8{fill:#444;}.cls-9{fill:#9ae19d;}.cls-10{fill:#725d24;}.cls-11{fill:#b3b3b3;}.cls-12{fill:#4d4d4d;}.cls-13{opacity:0.61;}.cls-14{opacity:0.62;}</style></defs><g id="Layer_2" data-name="Layer 2"><g id="Layer_2-2" data-name="Layer 2"><rect id="house_front" class="cls-1" x="335" y="260" width="623" height="366"/><polygon id="roof" class="cls-2" points="997.57 282 295.43 282 335 0 958 0 997.57 282"/><polygon class="cls-1" points="798.06 42 727.12 107.91 869 107.91 798.06 42"/><rect class="cls-3" x="731.8" y="107.86" width="133.2" height="131.06"/><polygon class="cls-4" points="797.79 42.82 721.48 110.39 725.62 113.55 801.92 45.98 797.79 42.82"/><rect class="cls-3" x="425" y="340" width="133" height="175"/><rect id="bottom_window" class="cls-5" x="436" y="351" width="111" height="153"/><path class="cls-4" d="M436,351V504H547V351Zm50.74,144H445.51V456h41.23Zm0-48H445.51V408h41.23Zm0-48H445.51V360h41.23Zm50.75,96H496.26V456h41.23Zm0-48H496.26V408h41.23Zm0-48H496.26V360h41.23Z"/><rect class="cls-6" x="380" y="340" width="45" height="175"/><rect class="cls-6" x="558" y="340" width="45" height="175"/><rect class="cls-5" x="425" y="515" width="133" height="14"/><rect class="cls-5" x="718" y="340" width="159" height="286"/><rect class="cls-3" x="729.28" y="351" width="136.43" height="275"/><rect class="cls-6" x="750.58" y="372" width="94.84" height="102"/><rect class="cls-6" x="750.58" y="497" width="94.84" height="102"/><circle class="cls-7" cx="853.5" cy="485.5" r="6.5"/><circle class="cls-8" cx="798.5" cy="406.5" r="2.5"/><circle class="cls-8" cx="798.5" cy="437.5" r="2.5"/><path class="cls-8" d="M799,435a10,10,0,0,1-10-10h-2a12,12,0,0,0,24,0h-2A10,10,0,0,1,799,435Z"/><rect class="cls-8" x="787" y="417" width="24" height="8"/><circle class="cls-9" cx="154.5" cy="398.5" r="101.5"/><rect class="cls-10" x="115" y="455" width="25" height="171"/><circle class="cls-9" cx="127" cy="340" r="76"/><circle class="cls-9" cx="84" cy="398" r="84"/><rect id="top_window" class="cls-5" x="742.94" y="118.62" width="110.91" height="108.11"/><path class="cls-4" d="M742.94,118.62V226.73H853.85V118.62Zm50.37,99.52H752.79V177.62h40.52Zm0-50.91H752.79V126.71h40.52Zm49.87,50.91H802.66V177.62h40.52Zm0-50.91H802.66V126.71h40.52Z"/><polygon class="cls-4" points="798.62 42.82 874.92 110.39 870.79 113.55 794.48 45.98 798.62 42.82"/><polygon class="cls-11" points="861.28 108 796.88 50.98 798.84 49.48 864.92 108 861.28 108"/><polygon class="cls-1" points="491.06 42 420.12 107.91 562 107.91 491.06 42"/><rect class="cls-3" x="424.8" y="107.86" width="133.2" height="131.06"/><polygon class="cls-4" points="490.79 42.82 414.48 110.39 418.62 113.55 494.92 45.98 490.79 42.82"/><rect id="top_window-2" data-name="top_window" class="cls-5" x="435.94" y="118.62" width="110.91" height="108.11"/><path class="cls-4" d="M435.94,118.62V226.73H546.85V118.62Zm50.37,99.52H445.79V177.62h40.52Zm0-50.91H445.79V126.71h40.52Zm49.87,50.91H495.66V177.62h40.52Zm0-50.91H495.66V126.71h40.52Z"/><polygon class="cls-4" points="491.62 42.82 567.92 110.39 563.79 113.55 487.48 45.98 491.62 42.82"/><polygon class="cls-11" points="554.28 108 489.88 50.98 491.84 49.48 557.92 108 554.28 108"/><rect class="cls-12" x="335" y="282" width="623" height="5"/><rect x="729" y="351" width="137" height="2"/><path id="tree_cover" data-name="tree cover" class="cls-13" d="M194.57,305.22a76,76,0,0,0-140.78,14.4A84,84,0,0,0,95.62,481.18,100.94,100.94,0,0,0,115,492V626h25V499a101.51,101.51,0,0,0,54.57-193.74Z"/><path id="house_shadow" class="cls-14" d="M958,1H335L295.43,283H335V627H958V283h39.57ZM495.66,126.71h40.52v40.52H495.66Zm-49.87,0h40.52v40.52H445.79Zm0,50.91h40.52v40.52H445.79Zm41,317.38h-41.5V456h41.5Zm0-48h-41.5V408h41.5Zm0-48h-41.5V360h41.5Zm8.91-221.38h40.52v40.52H495.66ZM537.75,495h-41.5V456h41.5Zm0-48h-41.5V408h41.5Zm0-48h-41.5V360h41.5ZM793.31,218.14H752.79V177.62h40.52Zm0-50.91H752.79V126.71h40.52Zm49.87,50.91H802.66V177.62h40.52Zm0-50.91H802.66V126.71h40.52Z"/></g></g></svg>
</div>
<div class="ground"></div>
<div class="sun_container">
<div id="sun"></div>
</div>
@import
url(https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Yanone+Kaffeesatz&display=swap);
#top_window {
animation-name: front-windows;
animation-duration: 60s;
animation-timing-function: ease;
/* animation-direction: alternate;*/
animation-iteration-count: 1;
}
@keyframes front-windows {
/*0% {fill: #fff;}
100% {fill: #090029;}*/
0% {fill: #090029;}
8% {fill: #F5E663;}
/*night*/
10% {fill: #090029;}
/*pause*/
20% {fill: #090029;}
30% {fill: #F5E663;}
/*first day ends*/
50% {fill: #090029;}
/*night*/
55% {fill: #090029;}
/*pause*/
60% {fill: #F5E663;}
63.75% {fill: #090029;}
67.5% {fill: #090029;}
/*night*/
70% {fill:#090029;}
/*pause*/
75% {fill: #F5E663;}
77.5% {fill: #090029;}
80% {fill: #090029;}
/*night*/
82.5% {fill: #090029;}
/*pause*/
85% {fill: #F5E663;}
86.25% {fill:#090029;}
87.5% {fill: #090029;}
/*night*/
88.75% {fill: #090029;}
/*pause*/
90% {fill: #F5E663;}
91.25% {fill: #090029;}
92.5% {fill: #090029;}
/*night*/
93.75% {fill: #090029;}
/*pause*/
95% {fill: #F5E663;}
96.25% {fill: #090029;}
97.5% {fill: #090029;}
/*night*/
98.75% {fill: #090029;}
/*pause*/
100% {fill: #090029;}
}
#bottom_window {
animation-name: bottom-window;
animation-duration: 60s;
animation-timing-function: ease;
/* animation-direction: alternate;*/
animation-iteration-count: 1;
}
@keyframes bottom-window {
/*0% {fill: #fff;}
100% {fill: #090029;}*/
0% {fill: #090029;}
8% {fill: #090029;}
/*night*/
10% {fill: #F5E663;}
/*pause*/
20% {fill: #090029;}
30% {fill: #090029;}
/*first day ends*/
50% {fill: #F5E663;}
/*night*/
55% {fill: #F5E663;}
/*pause*/
60% {fill: #090029;}
63.75% {fill: #F5E663;}
67.5% {fill: #F5E663;}
/*night*/
70% {fill:#090029;}
/*pause*/
75% {fill: #090029;}
77.5% {fill: #F5E663;}
80% {fill: #F5E663;}
/*night*/
82.5% {fill: #090029;}
/*pause*/
85% {fill: #090029;}
86.25% {fill:#F5E663;}
87.5% {fill: #F5E663;}
/*night*/
88.75% {fill: #090029;}
/*pause*/
90% {fill: #090029;}
91.25% {fill: #F5E663;}
92.5% {fill: #F5E663;}
/*night*/
93.75% {fill: #090029;}
/*pause*/
95% {fill: #090029;}
96.25% {fill: #F5E663;}
97.5% {fill: #F5E663;}
/*night*/
98.75% {fill: #090029;}
/*pause*/
100% {fill: #090029;}
}
#house_shadow, #tree_cover {
animation-name: shadow;
animation-duration: 60s;
animation-timing-function: ease-in-out;
/* animation-direction: alternate;*/
animation-iteration-count: 1;
}
@keyframes shadow {
0% {opacity: 80%}
8% {opacity: 30%;}
/*night*/
10% {opacity: 0%;}
/*pause*/
20% {opacity: 0%;}
30% {opacity: 80%}
/*first day ends*/
50% {opacity: 0%}
/*night*/
55% {opacity: 0%;}
/*pause*/
60% {opacity: 80%;}
63.75% {opacity: 0%;}
67.5% {opacity: 0%;}
/*night*/
70% {opacity: 80%;}
/*pause*/
75% {opacity: 40%;}
77.5% {opacity: 0%;}
80% {opacity: 0%;}
/*night*/
82.5% {opacity: 80%;}
/*pause*/
85% {opacity: 40%;}
86.25% {opacity: 0%;}
87.5% {opacity: 0%;}
/*night*/
88.75% {opacity: 80%;}
/*pause*/
90% {opacity: 40%;}
91.25% {opacity: 0%;}
92.5% {opacity: 0%;}
/*night*/
93.75% {opacity: 80%;}
/*pause*/
95% {opacity: 40%;}
96.25% {opacity: 0%;}
97.5% {opacity: 0%;}
/*night*/
98.75% {opacity: 80%;}
/*pause*/
100% {opacity: 80%;}
}
body {
margin: 0;
/*background adapted from: https://codepen.io/P1N2O/pen/pyBNzX*/
background: linear-gradient(347deg, #f5e663, #f0b0ac, #e38fb6, #1AC8ED, #090029);
background-size: 400% 400%;
/*background-repeat: no-repeat;*/
animation-name: sunrise;
animation-duration: 60s;
animation-timing-function: ease-in-out;
/* animation-direction: alternate;*/
animation-iteration-count: 1;
}
@keyframes sunrise {
10% {background-position: 100% 100%;}
20% {background-position: 50% 50%;}
/*night*/
30% {background-position: 0% 0%;}
/*pause*/
40% {background-position: 0% 0%;}
45% {background-position: 100% 100%;}
50% {background-position: 50% 50%;}
/*night*/
55% {background-position: 0% 0%;}
/*pause*/
60% {background-position: 0% 0%;}
63.75% {background-position: 100% 100%;}
67.5% {background-position: 50% 50%;}
/*night*/
70% {background-position: 0% 0%;}
/*pause*/
75% {background-position: 0% 0%;}
77.5% {background-position: 100% 100%;}
80% {background-position: 50% 50%;}
/*night*/
82.5% {background-position: 0% 0%;}
/*pause*/
85% {background-position: 0% 0%;}
86.25% {background-position: 100% 100%;}
87.5% {background-position: 50% 50%;}
/*night*/
88.75% {background-position: 0% 0%;}
/*pause*/
90% {background-position: 0% 0%;}
91.25% {background-position: 100% 100%;}
92.5% {background-position: 50% 50%;}
/*night*/
93.75% {background-position: 0% 0%;}
/*pause*/
95% {background-position: 0% 0%;}
96.25% {background-position: 100% 100%;}
97.5% {background-position: 50% 50%;}
/*night*/
98.75% {background-position: 0% 0%;}
/*pause*/
100% {background-position: 0% 0%;}
}
.svg_container {
padding-top: 50px;
margin-bottom: -8px;
margin-left: 20%;
position: relative;
}
/*
svg {
transform: scale(0.50);
}
#window_1 {
fill: green;
animation-name: front-windows;
animation-duration: 4s;
animation-iteration-count: infinite;
}
@keyframes front-windows {
0% {fill: #fff;}
100% {fill: yellow;}
}
*/
.text {
background-color: #FEFCEC;
margin: auto;
padding: 0px;
height: 100px;
}
.text2 {
position: absolute;
margin: auto;
padding: 0px;
height: 100px;
width: 100%
}
h2 {
opacity: 0%;
padding-top: 12px;
/*font-family: 'Yanone Kaffeesatz', sans-serif;*/
font-family: 'Bebas Neue', cursive;
}
#young {
animation-name: young;
animation-duration: 24s;
animation-iteration-count: 1;
animation-timing-function: linear;
}
@keyframes young {
0% {margin-left: 5%; opacity: 10%;}
50% {margin-left: 40%; opacity: 80%}
100% {margin-left: 70%; opacity: 0%; width: 120%}
}
#slowly {
animation-name: slowly;
animation-delay: 22s;
animation-duration: 12s;
animation-iteration-count: 1;
animation-timing-function: linear;
}
@keyframes slowly {
0% {margin-left: 5%; opacity: 10%;}
50% {margin-left: 40%; opacity: 80%}
100% {margin-left: 70%; opacity: 0%; width: 120%}
}
#fast {
animation-name: fast;
animation-delay: 34s;
animation-duration: 9s;
animation-iteration-count: 1;
animation-timing-function: linear;
}
@keyframes fast {
0% {margin-left: 5%; opacity: 10%;}
50% {margin-left: 50%; opacity: 80%}
100% {margin-left: 80%; opacity: 0%; width: 120%}
}
#faster {
animation-name: faster;
animation-delay: 42s;
animation-duration: 6s;
animation-iteration-count: 1;
animation-timing-function: linear;
}
@keyframes faster {
0% {margin-left: 5%; opacity: 10%;}
50% {margin-left: 40%; opacity: 80%}
100% {margin-left: 70%; opacity: 0%; width: 120%}
}
#fastest {
animation-name: fastest;
animation-delay: 48s;
animation-duration: 3s;
animation-iteration-count: 1;
animation-timing-function: linear;
}
@keyframes fastest {
0% {margin-left: 5%; opacity: 10%;}
50% {margin-left: 40%; opacity: 80%}
100% {margin-left: 70%; opacity: 0%; width: 120%}
}
#fastest2 {
animation-name: fastest2;
animation-delay: 51s;
animation-duration: 3s;
animation-iteration-count: 1;
animation-timing-function: linear;
}
@keyframes fastest2 {
0% {margin-left: 5%; opacity: 10%;}
50% {margin-left: 40%; opacity: 80%}
100% {margin-left: 70%; opacity: 0%; width: 120%}
}
#fastest3 {
animation-name: fastest3;
animation-delay: 54s;
animation-duration: 3s;
animation-iteration-count: 1;
animation-timing-function: linear;
}
@keyframes fastest3 {
0% {margin-left: 5%; opacity: 10%;}
50% {margin-left: 40%; opacity: 80%}
100% {margin-left: 50%; opacity: 100%; width: 100%}
}
#fastest4 {
animation-name: fastest4;
animation-delay: 57s;
animation-duration: 3000s;
animation-iteration-count: 1;
animation-timing-function: linear;
}
@keyframes fastest4 {
0% {margin-left: 50%; opacity: 100%; width: 120%}
100% {margin-left: 50%; opacity: 100%; width: 100%}
}
.sun_container {
position: relative;
width: 100%;
z-index: -100;
}
#sun {
width: 200px;
height: 200px;
border-radius: 100%;
background-color: #FEFCEC;
float: right;
margin-right: 2%;
animation-name: sun;
animation-duration: 20s;
animation-delay: 1.5s;
animation-iteration-count: 2;
}
@keyframes sun {
0% {transform: translatey(0);}
45% {transform: translatey(-500px); opacity: 1;}
100% {transform: translatey(0); opacity: 0;}
}
.ground {
background-color: #000;
margin: auto;
padding: 0px;
height: 200px;
z-index: 1;
position: relative;
}
/*
.moon_container {
position: absolute;
width: 100%;
}
#moon {
width: 200px;
height: 200px;
border-radius: 100%;
background-color: #FEFCEC;
float: left;
margin: 50px;
position: absolute;
animation-name: moon;
animation-duration: 12s;
animation-iteration-count: 1;
}
@keyframes moon {
0% {margin-top: 0%;}
100% {margin-top: 200vh;}
}
*/
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.