Skip to content

Instantly share code, notes, and snippets.

@thebird
Created April 15, 2012 09:16
Show Gist options
  • Save thebird/2391429 to your computer and use it in GitHub Desktop.
Save thebird/2391429 to your computer and use it in GitHub Desktop.
var img = new Image();
$(img).load(function () {
setTimeout(function() {
$('section').addClass('full');
$('span').addClass('fix');
$('.wrap').addClass('no');
setTimeout(function() {
$('.logo').addClass('drop');
}, 500)
setTimeout(function() {
$('.appstore').addClass('slide');
}, 700)
setTimeout(function() {
$('.rocket').addClass('fly');
}, 2800)
}, 500)
$('a.toggle').on('click', function() {
if ($('.screen').hasClass('strings')) {
$('.screen').removeClass('strings');
}
else {
$('.screen').addClass('strings');
}
if ($('span').hasClass('fix')) {
$('span').removeClass('fix');
}
else {
$('span').addClass('fix');
}
if ($('.toggle').hasClass('back')) {
$('.toggle').removeClass('back');
}
else {
$('.toggle').addClass('back');
}
});
}).attr('src', 'i/wings.png');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment