Skip to content

Commit

Permalink
mirage
Browse files Browse the repository at this point in the history
  • Loading branch information
cold-magma committed Apr 10, 2020
1 parent 2f58db4 commit 1831b01
Show file tree
Hide file tree
Showing 18 changed files with 123 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mirage/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var scene = document.getElementById('scene');
var parallaxInstance = new Parallax(scene);
Binary file added mirage/layers/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mirage/layers/10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mirage/layers/11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mirage/layers/12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mirage/layers/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mirage/layers/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mirage/layers/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mirage/layers/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mirage/layers/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mirage/layers/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mirage/layers/8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mirage/layers/9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mirage/layers/sky.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mirage/layers/sun-lite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mirage/layers/sun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions mirage/mirage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<title>MIRAGE</title>
<link rel="stylesheet" type="text/css" href="miragestylesheet.css">
</head>
<body>
<div data-hover-only="true" data-limit-x="true" data-limit-y="50" data-scalar-x="5.0" data-scalar-y="2.0" data-origin-y="0" data-relative-input="true" id="scene">
<div class="layers" id="layer1" data-depth="0.55"></div>
<div class="layers" id="layer2" data-depth="0.50"></div>
<div class="layers" id="layer3" data-depth="0.45"></div>
<div class="layers" id="layer4" data-depth="0.4"></div>
<div class="layers" id="layer5" data-depth="0.35"></div>
<div class="layers" id="layer6" data-depth="0.3"></div>
<div class="layers" id="layer7" data-depth="0.275"></div>
<div class="layers" id="layer8" data-depth="0.25"></div>
<div class="layers" id="layer9" data-depth="0.225"></div>
<div class="layers" id="layer10" data-depth="0.2"></div>
<div class="layers" id="layer11" data-depth="0.15"></div>
<div class="layers" id="layer12" data-depth="0.15"></div>
<div class="layers" id="layer13" data-depth="0.1"></div>
<div class="layers" id="layer14" data-depth="0.05"></div>
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/parallax/3.1.0/parallax.min.js"></script>
<script src="app.js"></script>
</body>
</html>
93 changes: 93 additions & 0 deletions mirage/miragestylesheet.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
*{
margin:0;
padding: 0;
}
body{
width: 100%;
background: black;
overflow: hidden;
}
.scene{
position: absolute;
left: 50;
top: 50;
width: 100vw;
height: 100vh;
}
.layers{
position: absolute;
left: 60;
top: 60;
width: 120vw;
height: 120vh;
}
#layer1{
background: url(./layers/1.png);
background-size: cover;
z-index: 12;
}
#layer2{
background: url(./layers/2.png);
background-size: cover;
z-index: 11;
}
#layer3{
background: url(./layers/3.png);
background-size: cover;
z-index: 10;
}
#layer4{
background: url(./layers/4.png);
background-size: cover;
z-index: 9;
}
#layer5{
background: url(./layers/5.png);
background-size: cover;
z-index: 8;
}
#layer6{
background: url(./layers/6.png);
background-size: cover;
z-index: 7;
}
#layer7{
background: url(./layers/7.png);
background-size: cover;
z-index: 6;
}
#layer8{
background: url(./layers/8.png);
background-size: cover;
z-index: 5;
}
#layer9{
background: url(./layers/9.png);
background-size: cover;
z-index: 4;
}
#layer10{
background: url(./layers/10.png);
background-size: cover;
z-index: 3;
}
#layer11{
background: url(./layers/11.png);
background-size: cover;
z-index: 2;
}
#layer12{
background: url(./layers/12.png);
background-size: cover;
z-index: 1;
}
#layer13{
background: url(./layers/sun-lite.png);
background-size: cover;
z-index:0;
}
#layer14{
background: url(./layers/sky.png);
background-size: cover;
z-index: -1;
}

0 comments on commit 1831b01

Please sign in to comment.