addAnimation:function () {
$('.list-1').mouseenter(function () {
$(this).find('.l-con').stop().animate({
top:0
});
$(this).find('.l-con').find('h4').stop().animate({
paddingTop:30
});
}).mouseleave(function () {
$(this).find('.l-con').stop().animate({
top:300
});
$(this).find('.l-con').find('h4').stop().animate({
paddingTop:0
});
})
},
2016年10月11日,在一个风高的日子
今天遇到的问题是
在js使用animate的情况下,假如没有一个限制,就会导致所以的就是喷泉一样在活动。
后来利用了.stop方法导致停止
开始我自己人生第一份打代码的工作
觉得这几天上班的真的很充实很有意思
博客开始是从比较基础的记录问题,到平时自己再发现问题去尝试分析和完成的。