인터넷에서 튜토리얼을 발견했습니다. jquery로 물건을 움직이게하기. 내 웹 사이트의 헤더에 h1 태그를 애니메이션화합니다. 그리고 헤더에있는 내 웹 사이트의 로고를 원합니다. 나는이 코드를 애니메이션에 사용했다.jQuery easing plugin 문제
/* Slogan (h1) effect header */
$(function() {
// make sure your h2's have a position relative
$('#header h1').css({
left: '600px'
})
jQuery.easing.def = 'easeOutBounce';
setTimeout(animate, 1000);
});
function animate() {
$('#header h1').animate({
left: 0
}, 1000);
}
/* Effect op logo */
$(function() {
$('#header .logo').css({
top: '-600px'
})
jQuery.easing.def = 'easeOutBounce';
setTimeout(animate, 1000);
});
function animate() {
$('#header .logo').animate({
top: 0
}, 1000);
}
이 애니메이션의 경우 jquery.easing1.3 플러그인을 사용했습니다. 이제 문제를 해결하십시오. 내가 작성한 코드. 로고 효과 만 재생됩니다. h1에 미치는 영향은 없습니다. 내가 뭘해야하니? 그 h1 로고와 header.logo animate ???
감사합니다 !!!!
감사합니다 모두들 !!! – Mike