小编Hel*_*mut的帖子

在CSS动画后,Div被隐藏起来

我在CSS3页面加载时有一个延迟动画.一切正常,但动画完成后,DIV会重新进入visibility: hidden.

.content-left {
    margin-left: 100px;
    margin-top: 32px;
    position: absolute;
    z-index: 1; 
    visibility: hidden;
    -webkit-animation: fadein 1s 2s ease; /* Safari and Chrome */
    animation: fadein 1s 2s ease;
}

@keyframes fadein {
from { height: 0px; }
to   { height: 421px; visibility: visible;} }

@-webkit-keyframes fadein {
from { height: 0px; }
to   { height: 421px; visibility: visible;}}
Run Code Online (Sandbox Code Playgroud)

html css3 css-animations

4
推荐指数
1
解决办法
73
查看次数

标签 统计

css-animations ×1

css3 ×1

html ×1