A few homepage optimizations.

* Improved iOS timing from pop in to breathing. Shouldn't distort as
 much
* Hide tag line when page is loading to not make it pop in then out
This commit is contained in:
Amadeus Demarzi 2014-07-27 23:59:17 -07:00
parent b172f45b94
commit 2c22b619c5
4 changed files with 5 additions and 7 deletions

View File

@ -6,6 +6,7 @@ Engine.Typewriter = function(element){
this.element = element;
this.content = this.element.textContent.split('');
this.element.innerHTML = '';
this.element.style.visibility = 'visible';
};
Engine.Typewriter.prototype = {

View File

@ -93,12 +93,9 @@ Engine = Base.extend({
.then(function(){
this.showShapes = true;
}, this)
.wait(800)
.wait(1000)
.then(function(){
this.logo.startBreathing();
}, this)
.wait(200)
.then(function(){
this.showGrid = true;
}, this)
.wait(1000)

View File

@ -66,10 +66,9 @@ var Init = {
Pages: {
'page-home': function(){
var jumbotron;
if (isIE) {
jumbotron = document.getElementById('jumbotron');
jumbotron.className += ' static';
document.getElementById('jumbotron').className += ' static';
document.getElementById('tag-line').style.visibility = 'visible';
return;
}

View File

@ -121,6 +121,7 @@
top:540px;
color:#fff;
text-align:center;
visibility:hidden;
font-family: 'Lato', "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 200;