Update header to animation
diff --git a/css/style.css b/css/style.css
index 3f1bbe0..3f554c0 100644
--- a/css/style.css
+++ b/css/style.css
@@ -1834,3 +1834,181 @@
.closebtn:hover {
color: black;
}
+
+.vcenter {
+ display: inline-block;
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ -webkit-transform: translate(-50%, -50%);
+ transform: translate(-50%, -50%);
+}
+
+.animation {
+ display: inline-block;
+ position: relative;
+ width: 378px;
+ height: 290px;
+ margin: 0 auto;
+ vertical-align: middle;
+}
+.animation .device {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ left: 50%;
+ top: 50%;
+ background: #111;
+ -webkit-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
+ -moz-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
+ -ms-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
+ transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
+ -moz-transform: translate(-50%, -50%);
+ -ms-transform: translate(-50%, -50%);
+ -webkit-transform: translate(-50%, -50%);
+ transform: translate(-50%, -50%);
+}
+.animation .device .phone-home-button,
+.animation .device .tablet-home-button {
+ position: absolute;
+ border-radius: 50%;
+ background: #444;
+ opacity: 0;
+ z-index: 1;
+ -webkit-transition: all 0.4s ease;
+ -moz-transition: all 0.4s ease;
+ -ms-transition: all 0.4s ease;
+ transition: all 0.4s ease;
+}
+.animation .device .phone-home-button {
+ width: 16px;
+ height: 16px;
+ margin-top: -8px;
+ right: 11px;
+ top: 50%;
+}
+.animation .device .tablet-home-button {
+ width: 12px;
+ height: 12px;
+ margin-left: -6px;
+ bottom: 7px;
+ left: 50%;
+}
+.animation .device .screen-stand {
+ position: absolute;
+ width: 100%;
+ margin-left: -10px;
+ margin-top: -1px;
+ top: 60%;
+ opacity: 0;
+ z-index: 1;
+ -webkit-transition: all 0.4s ease-out;
+ -moz-transition: all 0.4s ease-out;
+ -ms-transition: all 0.4s ease-out;
+ transition: all 0.4s ease-out;
+}
+.animation .device .screen-stand .leg {
+ position: absolute;
+ width: 12px;
+ height: 16px;
+ left: 50%;
+ top: 0;
+ margin-left: -6px;
+ background: #111;
+}
+.animation .device .screen-stand .foot {
+ position: absolute;
+ width: 120px;
+ height: 4px;
+ left: 50%;
+ top: 15px;
+ margin-left: -60px;
+ border-top-left-radius: 2px;
+ border-top-right-radius: 2px;
+ background: #111;
+}
+.animation .device .display {
+ position: relative;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ background: #34495e;
+ z-index: 3;
+}
+.animation .device .display div {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ left: 100%;
+ white-space: nowrap;
+ -webkit-transition: all 0.4s ease;
+ -moz-transition: all 0.4s ease;
+ -ms-transition: all 0.4s ease;
+ transition: all 0.4s ease;
+}
+.animation .device .display div div {
+ position: absolute;
+ width: 100%;
+ left: 0;
+ top: 50%;
+ margin-top: -14px;
+ font-size: 1.1em;
+ text-align: center;
+ color: #fff;
+}
+.animation .device .display div div em {
+ font-weight: bold;
+}
+.animation .device .display .slide1 {
+ background: #34495e;
+}
+.animation .device .display .slide2 {
+ background: #16a085;
+}
+.animation .device .display .slide3 {
+ background: #3498db;
+}
+.animation[data-animation-step="1"] .device {
+ width: 70%;
+ height: 70%;
+ padding: 10px;
+ border-radius: 4px;
+}
+.animation[data-animation-step="1"] .device .slide1 {
+ left: 0%;
+}
+.animation[data-animation-step="1"] .device .screen-stand {
+ opacity: 1;
+ top: 100%;
+}
+.animation[data-animation-step="2"] .device {
+ width: 45%;
+ height: 82%;
+ padding: 24px;
+ border-radius: 10px;
+}
+.animation[data-animation-step="2"] .device .slide1 {
+ left: -100%;
+}
+.animation[data-animation-step="2"] .device .slide2 {
+ left: 0%;
+}
+.animation[data-animation-step="2"] .device .tablet-home-button {
+ opacity: 1;
+}
+.animation[data-animation-step="3"] .device {
+ width: 60%;
+ height: 42%;
+ padding: 10px 36px;
+ border-radius: 6px;
+}
+.animation[data-animation-step="3"] .device .slide1,
+.animation[data-animation-step="3"] .device .slide2 {
+ left: -100%;
+}
+.animation[data-animation-step="3"] .device .slide3 {
+ left: 0%;
+}
+.animation[data-animation-step="3"] .device .phone-home-button {
+ opacity: 1;
+}
diff --git a/index.html b/index.html
index 12901a7..92abab0 100644
--- a/index.html
+++ b/index.html
@@ -59,10 +59,44 @@
<div class="row cover top">
<div class="col-xs-12">
<div class="row">
- <div class="col-xs-12 headline vcenter" style="margin-top: 3rem;">
- <img class="centered text-center" src="https://i.imgur.com/nzsZTTY.png">
- <h1 class="text-center">This is Bliss OS</h1>
- <p class="lead text-center">An Open-Source OS, based on Android, for phones, tablets & PCs</p>
+ <div class="col-md-6" align="right">
+ <p class="lead"><br></p>
+ <div class="row">
+ <h1>Bliss OS</h1>
+ <p class="lead">An Open-Source OS, based on Android, that works on</p>
+ </div>
+ </div>
+ <div class="col-md-6">
+ <div class="row">
+ <div class="animation" data-animation-step="1">
+ <div class="device">
+ <div class="screen-stand">
+ <div class="leg"></div>
+ <div class="foot"></div>
+ </div>
+ <div class="display">
+ <div class="slide1">
+ <div>Most Intel/x86
+ <br>
+ <em>PCs, Tablets & Laptops</em>
+ </div>
+ </div>
+ <div class="slide2">
+ <div>Most Android
+ <br>
+ <em>tablets</em>
+ </div>
+ </div>
+ <div class="slide3">
+ <div>Most Android
+ <br>
+ <em>phones</em>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
</div>
</div>
<div class="row">
@@ -882,6 +916,7 @@
<script src="js/script.js"></script>
<script src="js/jquery-2.1.1.js"></script>
<script src="js/jquery.mixitup.min.js"></script>
- <script src="js/main.js"></script>
+ <script src="js/main.js"></script>
+ <script src="js/mainani.js"></script>
</body>
</html>
diff --git a/js/mainani.js b/js/mainani.js
new file mode 100644
index 0000000..3170f21
--- /dev/null
+++ b/js/mainani.js
@@ -0,0 +1,6 @@
+// this thing is js driven on slid.es so I didn't bother switching out for css animations
+var duration = 7000, steps = 3, step = 1;
+
+setInterval( function() {
+ document.querySelector( '.animation' ).setAttribute( 'data-animation-step', step = ++step > steps ? 1 : step );
+}, duration / steps );
\ No newline at end of file