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.element = element;
this.content = this.element.textContent.split(''); this.content = this.element.textContent.split('');
this.element.innerHTML = ''; this.element.innerHTML = '';
this.element.style.visibility = 'visible';
}; };
Engine.Typewriter.prototype = { Engine.Typewriter.prototype = {

View File

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

View File

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

View File

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