js+css实现通告栏文字滚动效果代码

代码语言:html

所属分类:其他

代码描述:js+css实现通告栏文字滚动效果代码

代码标签: js css 通告栏 文字 滚动

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

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>通告栏文字滚动效果</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    .container {
        margin-top: 100px;
      width: 100vw;
      height: 100vh;
      display: flex;
      justify-content: center;
    }

    .callboard {
      margin-top: 20px;
      height: 50px;
      display: flex;
      align-items: center;
      background-color: #4b5cc4;
      padding: 0 20px;
    }

    .callboard-title {
      margin-right: 20px;
      font-size: 22px;
      font-weight: 600;
      color: #a1afc9;
    }

    .callboard-split {
      height: 80%;
      width: 2px;
      background-color: #a1afc9;
      border-radius: 10px;
    }

    .callboard-content {
      margin-left: 20px;
      height: 40px;
      display: flex;
      flex-direction: column;
      overflow: hi.........完整代码请登录后点击上方下载按钮下载查看

网友评论0