CSSのキーフレームを使用して、要素のボトム位置と不透明度を同時にアニメーション化したいと考えています。複数のプロパティのCSSアニメーション
要素の不透明度はアニメーション化されていますが、下位の位置はアニメーション化されていません。
.custom-fade-down{
-webkit-animation: 23s ease 0s normal forwards 1 custom-down;
-moz-animation: 23s ease 0s normal forwards 1 custom-down;
animation: 23s ease 0s normal forwards 1 custom-down;
}
@keyframes custom-down {
from {
opacity: 0;
bottom: 10px;
}
to {
opacity: 1;
bottom: 1px;
}
}
あなたのソリューションは、近くにあります。 'position:relative;'を '.custom-fade-down'クラスに追加することは、このトリックを行うべきです。 –