zoukankan      html  css  js  c++  java
  • css实现的交互运动

    <style type="text/css">
                .filter-mix {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    width: 300px;
                    height: 200px;
                    filter: contrast(20);
                    background: #fff;
                }
                
                .filter-mix::before {
                    content: "";
                    position: absolute;
                    width: 120px;
                    height: 120px;
                    border-radius: 50%;
                    background: #333;
                    top: 40px;
                    left: 40px;
                    z-index: 2;
                    filter: blur(6px);
                    box-sizing: border-box;
                    animation: filterBallMove 4s ease-out infinite;
                }
                
                .filter-mix::after {
                    content: "";
                    position: absolute;
                    width: 80px;
                    height: 80px;
                    border-radius: 50%;
                    background: #3F51B5;
                    top: 60px;
                    right: 40px;
                    z-index: 2;
                    filter: blur(6px);
                    animation: filterBallMove2 4s ease-out infinite;
                }
                
                @keyframes filterBallMove {
                    50% {
                        left: 140px;
                    }
                }
                
                @keyframes filterBallMove2 {
                    50% {
                        right: 140px;
                    }
                }
                
    
    </style>
    <div class="container">
            <div class="filter-mix"></div>
    </div> 

     

    效果图:

  • 相关阅读:
    Redis 代理 twemproxy
    redis sentinel 集群监控 配置
    RabbitMQ 消息队列 配置
    codis 新版本 CodisLabs 编译安装
    CentOS7 开源跳板机(堡垒机) Jumpserver
    tomcat 优化配置 java-8 tomcat-7
    CentOS 7 安装配置 NFS
    CentOS 7 x64 安装 Ceph
    自动化运维 Ansible
    Java之数据类型讲解
  • 原文地址:https://www.cnblogs.com/shengnan-2017/p/7670407.html
Copyright © 2011-2022 走看看