首先我在first()函數里初始化了文字的樣式,并設置了opacity=0;獲取了元素后,在firstChange1()里改變了元素的left值,并設置了oDiv[1].style.webkitTransition="all 1s";為什么頁面出現時所有文字都已經顯示出來了,沒有任何過渡。。。。function?changes()?{
????first();
????timer?=?setTimeout(firstChange1(),?1000);
????timer?=?setTimeout(firstChange2(),?2000);
????timer?=?setTimeout(firstChange3(),?3000);
????timer?=?setTimeout(firstChange4(),?4000);
};
changes();
文字從右邊移入效果
nobcainiao
2015-10-12 22:02:44