📜  css 移动动画 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:34.859000             🧑  作者: Mango

代码示例1
article {
    animation-name            : displaceContent;
    animation-duration        : 1s;
    animation-delay           : 4s;
    animation-iteration-count : 1;
    animation-fill-mode       : forwards;
}
@keyframes displaceContent {
    from { transform : translateY(0em) }
    to   { transform : translateY(3em) } /* slide down to make room for advertisements */
}