页面加载后,元素动画。
afterLoad: function(anchorLink, index) {
if (index == 1) {
$('.screen-main span').each(function() {
var $rel = $(this).attr('rel');
var $arr = $rel.split(',');
$(this).animate({
left: $arr[2] + 'px',
top: $arr[3] + 'px'
}, 500);
});
}
if (index == 2 || index == 3 || index == 4 || index == 5) {
$('.inner').eq(index - 2).find('a').each(function() {
var $rel = $(this).attr('rel');
var $arr = $rel.split(',');
$(this).animate({
left: $arr[2] + 'px',
top: $arr[3] + 'px'
}, 500);
});
}
if (index == 6) {
$('.zanzhu-con a').fadeIn(1000);
}
},