1 Star 0 Fork 0

martian2049/node

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ddd.html 2.54 KB
一键复制 编辑 原始数据 按行查看 历史
martian2049 提交于 2018-07-04 14:55 . session
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="robots" content="nofollow">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body{
margin:0;
}
.WrapperWrapper{
width:80%;
margin-left:10%;
overflow: hidden;
height: 25px;
background-color: red;
position: fixed;
}
.wrapper{
position: relative;
display: flex;
flex-direction: row;
width:200%;
height:100%;
}
.marquee {
width:100%;
height:100%;
overflow: hidden;
position: relative;
background-color: blue;
}
.marquee div {
background-color: greenyellow;
display: block;
width: 200%;
position: absolute;
overflow: hidden;
animation: marquee 8s linear infinite;
display: flex;
align-content: center;
height:100%;
}
.marquee span {
background-color: orange;
float: left;
width: 50%;
display: flex;
align-content: center;
justify-content: center;
height:100%;
flex-direction: column;
}
@keyframes marquee {
0% { left: 0; }
100% { left: -100%; }
}
</style>
<script>
console.log('----yoyo');
</script>
<h1 id="title">yo what up</h1>
<div class="WrapperWrapper">
<div class="wrapper">
<div class="marquee">
<div>
<span>You spin me right right right round, baby. Like a record, baby.</span>
<span>You spin me right right right round, baby. Like a record, baby.</span>
</div>
</div>
</div>
</div>
<!--
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="robots" content="nofollow">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style type="text/css">
body{
margin:0;
}
.wrapper{
position: fixed;
background-color: pink;
display: flex;
flex-direction: row;
width:200%;
}
.movershell{
width: 50%;
background-color: greenyellow;
position: relative;
}
/*.a{
animation: a 8s linear infinite;
}
.b{
animation: b 8s linear infinite;
}
@keyframes a {
from {left: 0;}
to {left: -100%;}
}
@keyframes b {
from {left: 100%;}
to {left: 0;}
}
*/
/*@keyframes marquee {
0% { left: 0; }
100% { left: -100%; }
}
*/
</style>
<div class="wrapper">
<div class="movershell a ">
<span>You spin me right round, baby. Like a record, baby.</span>
</div>
<div class="movershell b">
<span>You spin me right round, baby. Like a record, baby.</span>
</div>
</div>
-->
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/martian2049/node.git
git@gitee.com:martian2049/node.git
martian2049
node
node
master

搜索帮助