css实现两条发光线条背道而驰旋转loading加载动画效果代码

代码语言:html

所属分类:加载滚动

代码描述:css实现两条发光线条背道而驰旋转loading加载动画效果代码

代码标签: css 发光 线条 旋转 loading 加载 动画

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

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

<head>
    <meta charset="UTF-8">

    <style>
        body {
    	margin: 0;
    	height: 100vh;
    	display: flex;
    	align-items: center;
    	justify-content: center;
    	background-color: black;
    }
    
    .loader {
        width: 20em;
        height: 20em;
        font-size: 10px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .loader .face {
        position: absolute;
        border-radius: 50%;
        border-style: solid;
        animation: animate 3s linear infinite;
    }
    
    .loader .face:nth-child(1) {
        width: 100%;
        height: 100%;
        color: gold;
        border-color: currentColor transparent transparent currentColor;
        border-width: 0.2em 0.2em 0em 0em;
        --deg: -45deg;
        animation-direction: normal;
    }
    
    .loader .face:nth-child(2) {
        width: 70%;
        height: 70%;
        color: lime;
        border-color: currentColor currentColor transparent transparent;
        border-width: 0.2em 0em 0em 0.2em;
        --deg: -135deg;
        animation-direction: .........完整代码请登录后点击上方下载按钮下载查看

网友评论0