0
希望有人能幫助我,我不知道去哪裏找它事業部移動位置和z指數
我試圖做一個onclick
事件,這將改變的3個Div
S中的位置。
的div放置像上的hoizontal圓,這意味着一個在中間應該z-index: 1
左右z-index: -1
onclick
,左應滑動到中間和更改z-index
權轉至左和中間的權利。
我該如何嘗試做到這一點? 這樣開始,但不會正確更改位置。 jsFiddle
代碼片段:
var i = 0;
while(i < (threeleft-50)){
var plus = (i)%2;
three.style.left = (threeleft-i)+'px';
two.style.left = (twoleft+plus)+'px';
one.style.left = (oneleft+plus)+'px';
i++;
}
而且還需要一點點的動畫,如果有更好的方式來做到這一點,讓我知道
由於到目前爲止