RandolphLiu (Talk | contribs) m |
RandolphLiu (Talk | contribs) m |
||
Line 104: | Line 104: | ||
$('#top-nav .nav-link').clearQueue().animate({lineHeight: '74px'}, 200, 'linear'); | $('#top-nav .nav-link').clearQueue().animate({lineHeight: '74px'}, 200, 'linear'); | ||
$('header>.navbar').clearQueue().animate({opacity: '0.75'}, 200, 'linear'); | $('header>.navbar').clearQueue().animate({opacity: '0.75'}, 200, 'linear'); | ||
− | $('header | + | $('header .navbar-header').clearQueue().animate({top: '10px'}, 200, 'linear'); |
$('header').data('expend', 'true'); | $('header').data('expend', 'true'); | ||
console.log('scoll to the top'); | console.log('scoll to the top'); | ||
Line 111: | Line 111: | ||
if ($('header').data('expend') != 'false') { | if ($('header').data('expend') != 'false') { | ||
$(function() { | $(function() { | ||
− | $('header | + | $('header .navbar-header').clearQueue().animate({top: '0'}, 400, 'linear'); |
$('header>.navbar').clearQueue().animate({opacity: '1'}, 400, 'linear'); | $('header>.navbar').clearQueue().animate({opacity: '1'}, 400, 'linear'); | ||
$('#top-nav .nav-link').clearQueue().animate({lineHeight: '54px'}, 400, 'linear'); | $('#top-nav .nav-link').clearQueue().animate({lineHeight: '54px'}, 400, 'linear'); |
Revision as of 05:28, 15 October 2018