css实现rgb三原色重叠加载loading动画效果代码

代码语言:html

所属分类:加载滚动

代码描述:css实现rgb三原色重叠加载loading动画效果代码

代码标签: 三原色 重叠 加载 loading 动画 效果

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">


    <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">



    <style>
        * {
        	border: 0;
        	box-sizing: border-box;
        	margin: 0;
        	padding: 0;
        }
        :root {
        	font-size: calc(16px + (24 - 16) * (100vw - 320px) / (1280 - 320));
        }
        body {
        	background: hsl(223,10%,10%);
        	font: 1em/1.5 sans-serif;
        	height: 100vh;
        	display: grid;
        	place-items: center;
        }
        .bm-pl {
        	position: relative;
        	width: 12em;
        	height: 12em;
        }
        .bm-pl__blob {
        	animation: moveR 8s linear infinite;
        	border-radius: 50%;
        	mix-blend-mode: screen;
        	position: absolute;
        	top: 0;
        	left: 0;
        	width: 9em;
        	height: 9em;
        }
        .bm-pl__blob--r {
        	background: hsl(3,90%,55%);
        }
        .bm-pl__blob--g {
        	animation-name: moveG;
        	background: hsl(113,90%,55%);
        }
        .bm-pl__blob--b {
        	animation-name: moveB;
        	background: hsl(223,90%,55%);
        }
        
        /* Animation */
        @keyframes moveR {
        	from, to {
        		border-radius: 54% 79% 75% 58% / 70% 66% 71% 47%;
        		transform: translate(0,0) rotate(-35deg) scale(0.875,1);
        	}
        	33% {
        		border-radius: 79% 43% 56% 67% / 58% 64% 61% 60%;
        		transform: translate(2.75em,0) rotate(0) scale(0.75,0.875);
        	}
        	67% {
      .........完整代码请登录后点击上方下载按钮下载查看

网友评论0