トランジションやアニメーションに関して、私は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;
}