87,910
社区成员
发帖
与我相关
我的任务
分享
var list = document.getElementById('list');
var first = document.getElementById('first');
var timer;
function touMingDu1(x) {
var opacity1 = parseFloat(first.style.opacity);
var newOpacity = opacity1 + x;
if (newOpacity > 1) {
clearInterval(timer);
} else {
first.style.opacity = newOpacity;
}
}
function play1() {
timer = setInterval(function() {
touMingDu1(0.1)
}, 500);
}
play1();
function fun(x) {
list.style.top = x * (-600) + 'px';
}