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:
parent
b172f45b94
commit
2c22b619c5
|
@ -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 = {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue