Space Animation HTML
<style>
html {
min-height: 800px;
}
body{
margin: 0px;
}
h1, h2, h3, p {
font-family: "brandon-grotesque",sans-serif;
}
p::before {
content: " ";
}
.container {
margin: 0;
max-width: none;
background-image: url(images/seamless_paper_texture.png);
}
.row {
margin: 0;
max-width: none;
}
.animationHeader {
width: 100%;
height: 700px;
background: url(images/starsOnly.png) no-repeat center top;
background-size: cover;
background-color: #290029;
position: relative;
}
#coverElement {
min-width: 50%;
z-index: 10;
background: url(images/cover-elements.png) no-repeat center top;
background-size: contain;
min-height: 80%;
}
.star {
background-color:#F0F0F0 ;
width: 1.5px;
height: 1.5px;
position: absolute;
border: #F0F0F0 0px solid;
border-radius: 50%;
opacity: 0;
-webkit-box-shadow: 0px 0px 3px 2px rgba(255,255,255,0.5);
-webkit-animation-name: glow;
-webkit-animation-duration: 5s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: ease-in-out;
}
#one {
left:50px;
top: 100px;
-webkit-animation-delay: 0.5s;
}
#two {
left: 80px;
top: 520px;
-webkit-animation-delay: 1s;
}
#three {
left: 120px;
top: 640px;
-webkit-animation-delay: 1.5s;
}
#four {
left: 230px;
top: 300px;
-webkit-animation-delay: 2s;
}
#five {
left: 300px;
top: 500px;
-webkit-animation-delay: 2.5s;
}
#six {
left: 500px;
top: 100px;
}
#seven {
left: 600px;
top: 350px;
-webkit-animation-delay: 3s;
}
#eight {
left: 650px;
top: 200px;
-webkit-animation-delay: 2.5s;
}
#nine {
left: 625px;
top: 500px;
-webkit-animation-delay: 2s;
}
#ten {
left: 775px;
top: 100px;
-webkit-animation-delay: 1.5s;
}
#eleven {
left: 850px;
top: 600px;
-webkit-animation-delay: 1s;
}
#twelve {
left: 950px;
top: 210px;
-webkit-animation-delay: 0.5s;
}
#thirteen {
left: 1100px;
top: 150px;
-webkit-animation-delay: 1s;
}
#fourteen {
left: 1100px;
top: 150px;
}
#fifteen{
left: 1175px;
top: 300px;
-webkit-animation-delay: 2s
}
#sixteen {
left: 920px;
top: 315px;
}
@-webkit-keyframes glow {
0% {opacity: 0; transform: scale(1,1);}
20% {opacity: .5;}
35% {opacity: 1;}
50% {transform: scale(2, 2);}
100% {transform: scale(1,1);}
}
.textBody {
padding: 0 25%;
margin-top: 25px;
}
#excerpt {
padding-bottom: 70px;
}
.firstCharacter {
float: left; color: #651f41; font-size: 75px; line-height: 60px; padding-top: 4px; padding-right: 8px; padding-left: 3px;
}
#footerArea {
background-color: #651f41;
}
@media only screen and (max-width: 750px) {
.textBody {
padding: 0 3%;
margin-top: 15px;
}
}
</style>
<body>
<div class="container">
<div class="row">
<div class="animationHeader">
<div class="star" id="one"></div>
<div class="star" id="two"></div>
<div class="star" id="three"></div>
<div class="star" id="four"></div>
<div class="star" id="five"></div>
<div class="star" id="six"></div>
<div class="star" id="seven"></div>
<div class="star" id="eight"></div>
<div class="star" id="nine"></div>
<div class="star" id="ten"></div>
<div class="star" id="eleven"></div>
<div class="star" id="twelve"></div>
<div class="star" id="thirteen"></div>
<div class="star" id="fourteen"></div>
<div class="star" id="fifteen"></div>
<div class="star" id="sixteen"></div>
<div id="coverElement"></div>
</div>
</div>
Thomas coder