提交 e0155665 编写于 作者: 一只迷路的伦's avatar 一只迷路的伦

gengxin

上级 b373c063
......@@ -16,9 +16,11 @@ for(var i=0;i<odiv_length;i++)
wheel=odiv_t.offsetHeight/5*n
odiv[i].style.transform='translateY('+wheel+'px)';
(function(i){
(function(i)
{
setTimeout(function(){
setTimeout(function()
{
odiv[ln].classList.remove('active');
odiv[i].classList.add('active');
......@@ -38,19 +40,18 @@ for(var i=0;i<odiv_length;i++)
},150*i)
}(i))
}
for(var i=0;i<timelenght;i++)
{
timeline_box[i].index=i;
timeline_box[i].onmouseover=function(){
timeline_box[i].onmouseover=function()
{
timeline_box[this.index].style.transform=this.index%2?'translateY(10px)':'translateY(-10px)'
imgs[this.index].style.transform='rotate(360deg)' ;
}
timeline_box[i].onmouseout=function(){
}
timeline_box[i].onmouseout=function()
{
timeline_box[this.index].style.transform='translateY(0)';
imgs[this.index].style.transform='rotate(0)' ;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册