相关疑难解决方法(0)

CSS3选框效果

我正在用CSS3动画创建一个选框效果.这是我的代码.

HTML标签:

#caption {
    position: fixed;
    bottom: 0;
    left: 0;
    font-size: 20px;
    line-height: 30px;
    height:30px;
    width: 100%;
    white-space: nowrap;
    -moz-animation:  caption 50s linear 0s infinite;
    -webkit-animation:  caption 50s linear 0s infinite;
}
@-moz-keyframes caption { 
    0% { margin-left:120%; } 100% { margin-left:-4200px; }  
}
@-webkit-keyframes caption { 
    0% { margin-left:120%; } 100% { margin-left:-4200px; }  
}
Run Code Online (Sandbox Code Playgroud)

CSS:

<div id="caption">
    The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. the quick brown …
Run Code Online (Sandbox Code Playgroud)

html css css-animations

47
推荐指数
2
解决办法
10万
查看次数

标签 统计

css ×1

css-animations ×1

html ×1