css Animation 动画-右进左出

transform: rotate(旋转) | scale(缩放) | skew(倾斜) | translate(移动) ;
<style>
.jinggao {
      width: 60vw;

      display: inline-block;
      text-align: center;
      overflow: hidden;
      box-sizing: border-box;
    }
    @keyframes Animation {
      0% {
        /* 右边 */
        transform: translateX(40vw);
      }
      100% {
        /* 左边 */
        transform: translateX(-40vw);
      }
    }
    .text {
      display: inline-block;
      color: #3379b7;
      font-size: 18px;

      animation: Animation 12s linear infinite;
    }
    .text:hover {
      animation-play-state: paused;
      cursor: pointer;
    }
</style> 
<div>
      <div class="jinggao">
        <span class="text">右进左出</span>
      </div>
    </div>

相关推荐

  1. css Animation 动画-

    2024-04-12 13:10:04       39 阅读
  2. vue router 过渡动画

    2024-04-12 13:10:04       54 阅读
  3. C++八股文 003:值,

    2024-04-12 13:10:04       60 阅读
  4. 值引用与值引用

    2024-04-12 13:10:04       32 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-12 13:10:04       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-12 13:10:04       101 阅读
  3. 在Django里面运行非项目文件

    2024-04-12 13:10:04       82 阅读
  4. Python语言-面向对象

    2024-04-12 13:10:04       91 阅读

热门阅读

  1. 实现移动端和pc端响应式css封装

    2024-04-12 13:10:04       42 阅读
  2. AWS Lab Streaming Data

    2024-04-12 13:10:04       26 阅读
  3. shell脚本每日练习

    2024-04-12 13:10:04       38 阅读
  4. Qt 无法连接MySQL数据库

    2024-04-12 13:10:04       41 阅读
  5. Objective-C学习笔记(NSDictionary,NSFileManager,Copy)4.11

    2024-04-12 13:10:04       34 阅读
  6. Thymeleaf

    2024-04-12 13:10:04       41 阅读
  7. 5.120 BCC工具之zfsslower.py解读

    2024-04-12 13:10:04       33 阅读
  8. c# Xml 和 Json 转换方法记录

    2024-04-12 13:10:04       36 阅读