我在网上找到了一个教程。用jquery动画。我会在我网站的标题中为h1标签制作动画。我想在我的网站上的标题标题。我将这段代码用于动画。jQuery缓动插件问题
/* 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动画?
谢谢!
其工作谢谢大家! – Mike 2010-07-09 14:44:43