纯css实现钢铁侠之心动画效果代码

代码语言:html

所属分类:动画

代码描述:纯css实现钢铁侠之心动画效果代码

代码标签: 钢铁 之心 动画 效果

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

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

<head>

    <meta charset="UTF-8">




    <style>
        body {
            margin: 0;
            background: #000000;
        }

        svg {
            position: absolute;
            z-index: 50;
        }

        .container {
            width: 100vw;
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: absolute;
        }

        .heartContainer {
            position: relative;
        }

        .ring {
            border-radius: 50%;
            border: 1px solid black;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .core {
            height: 87px;
            width: 87px;
            background: #dbfff7;
            border: 2px solid #1bf1fe;
            z-index: 20;
        }

        .inner-one {
            width: 123px;
            height: 123px;
            background: #1fb4bb;
            border: 2px solid #153e51;
            animation: neon 0.1s ease-in-out infinite alternate;
            z-index: 19;
        }

        .inner-two {
            width: 158px;
            height: 158px;
            background: #1fb4bb;
            border: 2px solid #153e51;
            animation: neon 0.1s ease-in-out infinite alternate;
            z-index: 18;
        }

        .inner-three {
            width: 184px;
            height: 184px;
            background: #1fb4bb;
            border: 2px solid #153e51;
            animation: neon 0.1s ease-in-out infinite alternate;
            z-index: 17;
        }

        .capsules {
            width: 256px;
            height: 256px;
            background: #2f4045;
            z-index: 16;
        }

        .inner-flat {
            width: 282px;
            height: 282px;
            background: #11545f;
            z-index: 15;
        }

        .neon {
            width: 366px;
            height: 366px;
            background: #dffffc;
            position: relative;
            z-index: 13;
        }

        .neon-pipe {
            position: absolute;
            height: 346px;
            width: 346px;
            background: #e3fdff;
            border-radus: 50%;
            z-index: 14;
            border: 1px solid black;
            animation: neon 0.1s ease-in-out infinite alternate;
        }

        .spacer {
            position: absolute;
            border: 3px solid red;
            height: 326px;
            width: 326px;
            background: #11545f;
            border-radus: 50%;
            z-index: 13;
        }

        .outer-flat {
            width: 382px;
 .........完整代码请登录后点击上方下载按钮下载查看

网友评论0