autoscale
autoscale
Hi
I'm using autoscale.js on a page with some animation effects. I'm just wondering if this code is written in the most efficient way, i.e I'm unsure how to group autoscale function with the animate functions. the background fades in but needs to resize first.
Here's the code:
<script type="text/javascript">
$(document).ready(function(){
$(".bg").animate({opacity:'show'},1500,function(){
$("#header").animate({opacity:'show'},1000,function(){
$("#mid").animate({opacity:'show'},1000,function(){
$("#footer").animate({opacity:'show'},1000,scroller.init());
}); }); }); });
$(function($) {
$(window).autoscale('.autoscale');
});
</script>