1
我想繞過CSS3繞過轉換和動畫。我有一些盒子,我希望標題和說明在盒子上方懸停時動畫。CSS3轉換/動畫不能正常工作
爲了得到這個工作,我想我必須在包裝元素的:hover事件觸發時定義動畫。我想我只是沒有在我的CSS中正確執行。
.feature-box, .feature-box-title, .feature-box-image, .feature-box-desc {
-webkit-transition: all 300ms linear;
-moz-transition: all 300ms linear;
-o-transition: all 300ms linear;
-ms-transition: all 300ms linear;
transition: all 300ms linear;
}
.feature-box:hover .feature-box-title {
-webkit-animation: moveFromRight 300ms ease;
-moz-animation: moveFromRight 300ms ease;
-ms-animation: moveFromRight 300ms ease;
}
.feature-box:hover .feature-box-desc {
-webkit-animation: moveFromBottom 500ms ease;
-moz-animation: moveFromBottom 500ms ease;
-ms-animation: moveFromBottom 500ms ease;
}