js实现抖音排名动画效果

代码语言:html

所属分类:布局界面

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

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>排行动画</title>
  <style>
    html, body, div, ul, li, img, span {
      padding: 0;
      margin: 0;
    }
 
    ul, li {
      list-style: none
    }
 
    span {
      display: inline-block;
    }
 
    img {
      vertical-align: top;
    }
 
    #box {
      padding: 20px;
      height: 700px;
    }
 
    #box ul {
      padding-left: 20px;
      position: relative;
    }
 
    #box li {
      margin-left: 60px;
      height: 28px;
      box-sizing: border-box;
      position: absolute;
      line-height: 28px;
      transition: width ease 1s, transform .........完整代码请登录后点击上方下载按钮下载查看

网友评论0