애니메이션을 스크롤 한 후 또는 어떤 메뉴 링크를 클릭해도 로고가 움직 이도록 트레이닝하고 있지만 작동하지 않습니다.jquery 스크롤 후 애니메이션
jQuery(function() {
jQuery('a').bind('click',function(event){
var $anchor = jQuery(this);
jQuery('html, body').stop().animate({
scrollTop: jQuery($anchor.attr('href')).offset().top
}, 2000,'easeInOutExpo');
event.preventDefault();
});
});
을 한 후, 로고 애니메이션, 창문의 위치 변경, 난이 만든 경우 :
jQuery(document).ready(function(){
jQuery(window).bind('scroll',function(){
var wscroll = jQuery(this).scrollTop();
if(wscroll > 500){
jQuery('#logo').delay(800).animate({
left:'+48px'
});
}else if(wscroll < 500){
jQuery('#logo').animate({
left:'-250px'
});
}
console.log(wscroll);
});
});
Here is 예
을
나는 스크롤 애니메이션이 코드를 가지고 그러나 이것은 전혀 작동하지 않습니다.
일부 안내를 받으실 수 있습니다. 사전에 Tks.
코드를 확인한 후 30 분이 지난 후 정지 (true, false) 테스트를 거쳤습니다. 너의 도움으로. – Mauro