Hello,
I found a tutorial on the internet. To animate things with jquery. I would animate a h1 tag in the header of my website. And i would like a logo on my website in the header. I used this code for the animation.
/* 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);
}
For this animation, i used the jquery.easing1.3 plugin. Now come the problem. With the code that i make. Only the effect on the logo will play. The effect on the h1 will nog play. What i must do? That the h1 logo and the header.logo animate????
Thanks !!!!