只有頁(yè)面剛載入有效果!
#st-control-1:checked?~?.st-scroll?#st-panel-1?h2, #st-control-2:checked?~?.st-scroll?#st-panel-2?h2, #st-control-3:checked?~?.st-scroll?#st-panel-3?h2, #st-control-4:checked?~?.st-scroll?#st-panel-4?h2, #st-control-5:checked?~?.st-scroll?#st-panel-5?h2{ ??-webkit-animation:moveDown?0.6s?ease-in-out?backwards; } @-webkit-keyframes?moveDown{ ??0%{ ?????-webkit-transform:translateY(-40px); ?????opacity:?0; ??} ??100%{ ????-webkit-transform:translateY(0px); ????opacity:?1; ??} }
這是我的css代碼· ,我只有頁(yè)面剛載入的時(shí)候有效果,無(wú)論選擇那個(gè)input都沒(méi)有效果了,等于是初始化的時(shí)候animation有效,不過(guò)再出發(fā)別的選擇器的時(shí)候,animation無(wú)效了
2017-05-08
那你看看你寫(xiě)個(gè)結(jié)構(gòu)是否正確?