Lego Worlds

font color animate

Posted by Taylor Bernard on June 24, 2015

jquery has a package file that handles color animations. it *should* be in the main core build in the new versions.

heres a code snippet to use to get animation to work.


$('#nav li a').hover(
function() {
// do this on hover
$(this).animate({fontSize : '26px', color : '#2E9ECE' }, 'fast');
},
function() {
// do this on hover out
$(this).animate({fontSize : '21px', color : '#000'}, 'slow');
}
);