Hi,
I want create a page which has animation at the bottom of that page. I use jQuery to do that..
this is the way I do it
<a href="#" class="animation">Animate this</a>
and this is the jquery
$(document).ready(function() {
$('a.animation').click(function(e) {
e.preventDefault();
//animation goes here;
});
});
When I run the code, all animation run very well except the page always scroll to the top. I try to change the href attribute to javascript:void(0); but it still run like that..
How can I fix it?
Thanks before,
Sorry for my English..