Skip to content

Commit

Permalink
Merge pull request #263 from ninjadev/loading-screen
Browse files Browse the repository at this point in the history
Update loading screen to not use position fixed
  • Loading branch information
stianjensen authored Apr 16, 2017
2 parents 512d37f + 3eea099 commit c0650cb
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,21 @@
content: ' ~';
}

.shipwrapper {
margin-left: 20%;
width: 80%;
position: relative;
}
#shiptrail {
position: fixed;
top: 60%;
left: 20%;
position: absolute;
top: 50px;
height: 4px;
background: rgba(255,255,255,0.8);
box-shadow: 0 0 10px 0px rgba(255,255,255,0.8);
}

#ninship {
position: fixed;
top: 60%;
left: 20%;
margin-top: -50px;
position: absolute;
width: 100px;
height: 100px;
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjwAAAEGCAMAAABW2L/+AAABd1BMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABKSkonLTAPDw/diKJvb29OW2B2iZETFheTrLUxOTxicngsLCx/lZ1ZWVkfHx+dt8FEUFSJoKm8PGOUlJQJCwtsfoQdIiRYZ2w6REgKCgobGxsVFRUMDAwTExMNDQ0REREGBgYZGRkCAgIeHh5uOUk9R0sWFhYlKy0OEBEmJiZGRkYQEBCOjo6NjY0LDQ1ubm4iJyoAAADs7OzOJFiTk5Pd3d0ODg4BAQFnZ2fAwMDBIlI6OjpYWFhcXFwrKyuAFjcMAgUdHR1ACxtnEiynHUcZBAuaG0K0H02FhYVaECYzCRZ0FDEmBxCNGTwICAgXFxdNDSF2dna0tLQhISGioqLOzs6EhIQEBARJSUk7OzvPz88tLS2cnJyxsbGkRrNXAAAAH3RSTlMA/h/AnHD23O9XPOev+4fPELDw4GDQoCCQMECAUPKtmEIEqgAAEFlJREFUeF7snNdy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VHfl7egUelw7kDA49Cp3MHBh6V7uYOLMMjO7AMj+zAKjyyA8vwyA4swyM7sAqP7MAyPLIDy/DIDizDIzuwCo/swDI8sgPL8MgOrMIjO7AMj+zAMjyyA6vwyKGTDI88ngyPyJPhEXkyPCJPhkfkyfCIPBkekSfDI/KsrkwAQP+XZ2zS4xF5JjzkUZNnbPLjkSP+5JHHI/KIPNrrvgEgmS1Irb83yQAAAABJRU5ErkJggg==') no-repeat center;
Expand All @@ -92,9 +93,8 @@
}

.loading-text {
position: fixed;
left: 40%;
top: 52%;
position: relative;
margin-left: 40%;
width: 20%;
color: rgba(255,255,255,0.8);
text-align: center;
Expand Down Expand Up @@ -125,16 +125,13 @@
}

#start-button {
position: fixed;
left: 40%;
top: 54.5%;
margin-left: 40%;
width: calc(20% - 20px);
color: rgba(255, 255, 255, 0.8);
text-decoration: none;
text-align: center;
border: 2px solid rgba(255, 255, 255, 0.8);
padding: 10px;
margin-top: -20px;
font-weight: bold;
border-radius: 5px;
}
Expand All @@ -161,8 +158,10 @@ <h3>released at Revision 2017</h3>
<a id=start-button class=hide href=javascript:; onclick=STARTDEMO();>
START
</a>
<div id="shiptrail"></div>
<div id="ninship"></div>
<div class="shipwrapper">
<div id="shiptrail"></div>
<div id="ninship"></div>
</div>
</div>
<script>
var loadingText = document.querySelector('.loading-text');
Expand Down

0 comments on commit c0650cb

Please sign in to comment.