zoukankan      html  css  js  c++  java
  • CSS3 边框彩虹跑马灯

    <!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>border ranbom</title>
        <style>
            .rbox {
                width: 320px;
                height: 240px;
                /* border: 3px solid #ccc; */
                position: absolute;
                left: 200px;
                top: 200px;
                overflow: hidden;
                border-radius: 10px;
            }
    
            .rbox .inner {
                width: 520px;
                height: 520px;
    
                background-image: linear-gradient(-60deg, red, yellow);
                animation: rbox 3s linear infinite;
                position: absolute;
                left: -100px;
                top: -100px;
    
    
    
    
            }
    
            .rbox .content {
                
                background: white;
                position: absolute;
                left: 6px;
                right: 6px;
                top: 6px;
                bottom: 6px;
                border-radius: 6px;
            }
    
            @keyframes rbox {
                from {
                    transform: rotate(0deg);
                }
    
                to {
                    transform: rotate(360deg);
                }
            }
        </style>
    </head>
    
    <body>
    
    
        <div class="rbox">
            <div class="inner">
    
            </div>
            <div class="content">
                sfsdf
            </div>
    
        </div>
    
    </body>
    
    </html>
  • 相关阅读:
    Angular 11 中 Schematics 的代码优化
    GoEasy使用阿里云OSS出现的问题
    易班模拟登录-Day1笔记
    类型别名与接口
    TypeScript中的数据类型
    Javascript类型系统
    手写Promise3
    手写Promise2
    手写Promise1
    Promise基础用法2
  • 原文地址:https://www.cnblogs.com/xdoudou/p/15467951.html
Copyright © 2011-2022 走看看