Skip to content

Instantly share code, notes, and snippets.

@sasamijp
Created December 18, 2016 07:41
Show Gist options
  • Save sasamijp/59a2eb2c9ec9453a3d0f657e5cbadf5d to your computer and use it in GitHub Desktop.
Save sasamijp/59a2eb2c9ec9453a3d0f657e5cbadf5d to your computer and use it in GitHub Desktop.
$("#chiba").hover(function () {
if(!(lock_chiba)){
lock_chiba = true;
$('#west').find('#info').transition({ opacity: 1 });
$('#west').find("#info .info-name").shuffleLetters();
$('#west').find("#info .rainfall").shuffleLetters();
$('#west').find("#info .temperature").shuffleLetters();
$('#west').find("#info .windspeed").shuffleLetters();
setTimeout(function(){
$('#west').find('#line').transition({ opacity: 1 });
},600);
}
}, function(){
setTimeout(function(){
$('#west').find('#info').transition({ opacity: 0 });
$('#west').find('#line').transition({ opacity: 0 });
lock_chiba = false;
},3000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment