CommentCoreLibrary实现评论弹幕动画效果代码

代码语言:html

所属分类:动画

代码描述:CommentCoreLibrary实现评论弹幕动画效果代码

代码标签: 弹幕 动画 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="format-detection" content="telphone=no" />
    <meta name="viewport" content="initial-scale=1.0,maximum-scale=1,user-scalable=no">
    <noscript><meta http-equiv="X-Frame-Options" content="deny" /></noscript>
    <title>弹幕示例</title>
<style>
.abp{
  position:relative;
}
.abp .container{
  -webkit-transform: matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);
          transform: matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);
  position: absolute;
  display: block;
  overflow: hidden;
  margin: 0;
  border: 0;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 9999;
  touch-callout: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.abp .container .cmt{
  -webkit-transform: matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);
          transform: matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);
  -webkit-transform-origin: 0% 0%;
      -ms-transform-origin: 0% 0%;
          transform-origin: 0% 0%;
  position: absolute;
  margin: 0;
  color: #fff;
  text-decoration: none;
  -webkit-text-size-adjust: none;
      -ms-text-size-adjust: none;
          text-size-adjust: none;
  letter-spacing: 0;
  word-break: keep-all;
  white-space: pre;

}
.abp .container .cmt.noshadow{
  text-shadow: none;
}
.abp .container .cmt.rshadow{
  text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
}

/** Aliases for Chinese named fonts because they don't work on *nix **/
@font-face{
  font-family: "\9ED1\4F53";
  src:local('SimHei');
}

@font-face{
  font-family: "\5B8B\4F53";
  src:local('SimSun');
}

@font-face{
  font-family: "\534E\6587\6977\4F53";
  src:local('SimKai');
}

@font-face{
  font-family: "\5E7C\5706";
  src:local('YouYuan');
}

@font-face{
  font-family: "\5FAE\8F6F\96C5\9ED1";
  src:local('Microsoft YaHei');
}
    html, body, div{margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline}
ol, ul{list-style: none}
body{ height: 2000px; font: 14px/1.6 Helvetica Neue,Helvetica,Arial,sans-serif; -webkit-tap-highlight-color: rgba(0,0,0,0);}

.feng-ccl-panel{ position: fixed; bottom: 0; left: 0; right: 0; height: 40%;}
.feng-ccl-panel .abp{ width: 100%; height: 100%;}
.feng-ccl-panel .cmt{ font-size: 12px; height: 22px; line-height: 22px; padding: 0 5px; border-radius: 6px; background: rgba(0, 0, 0, .7);}
.feng-ccl-panel .cmt .icon{ display: inline-block; width: 15px; height: 15px; margin-right: 5px;}
.feng-ccl-panel .cmt .icon img{ width: 16px; height: 16px; border-radius: 5px; margin-bottom: -4px;}

</style>
</head>
<body>

<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p.........完整代码请登录后点击上方下载按钮下载查看

网友评论0