css三维虫洞内部穿越动画效果代码

代码语言:html

所属分类:动画

代码描述:css三维虫洞内部穿越动画效果代码

代码标签: 内部 穿越 动画 效果

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

<html>
<head>
    <style>
@keyframes roundandround {
        to {
            transform: rotateX(360deg);
        }
    }
        body {
            background-color: #000000;
        }

        .scene {
            width: 600px;
            height: 600px;
            margin: 0 auto;
            perspective: 500px;
        }

        .wrapper {
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
            transform: rotateY(0deg) translateZ(300px);
        }

        .tunnel {
            position: relative;
            width: 200px;
            height: 200px;
            margin: 0 auto;
            transform-style: preserve-3d;
            animation: roundandround 10s infinite linear;
        }

        .tunnel .ring {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 6px;
            border-style: dashed;
            border-radius: 50%;
            transform-origin: 50% 50%;
            color: #8df435;
            transform: translateY(-200px);
        }

        /* SASS optimisation thanks to @imjared */
        .ring:nth-child(1) {
            color: #ff1500;
            transform: rotateX(5deg) translateY(-200px);
        }

        .ring:nth-child(2) {
            color: #ff2b00;
            transform: rotateX(10deg) translateY(-200px);
        }

        .ring:nth-child(3) {
            color: #ff4000;
            transform: rotateX(15deg) translateY(-200px);
        }

        .ring:nth-child(4) {
            color: #ff5500;
            transform: rotateX(20deg) translateY(-200px);
        }

        .ring:nth-child(5) {
            color: #ff6a00;
            transform: rotateX(25deg) translateY(-200px);
        }

        .ring:nth-child(6) {
            color: #ff8000;
            transform: rotateX(30deg) translateY(-200px);
        }

        .ring:nth-child(7) {
            color: #ff9500;
            transform: rotateX(35deg) translateY(-200px);
        }

        .ring:nth-child(8) {
            color: #ffaa00;
            transform: rotateX(40deg) translateY(-200px);
        }

        .ring:nth-child(9) {
            color: #ffbf00;
            transform: rotateX(45deg) translateY(-200px);
        }

        .ring:nth-child(10) {
            color: #ffd500;
            transform: rotateX(50deg) translateY(-200px);
        }

        .ring:nth-child(11) {
            color: #ffea00;
            transform: rotateX(55deg) translateY(-200px);
        }

        .ring:nth-child(12) {
            color: yellow;
            transform: rotateX(60deg) translateY(-200px);
        }

        .ring:nth-child(13) {
            color: #eaff00;
            transform: rotateX(65deg) translateY(-200px);
        }

        .ring:nth-child(14) {
            color: #d5ff00;
            transform: rotateX(70deg) translateY(-200px);
        }

        .ring:nth-child(15) {
            color: #bfff00;
            transform: rotateX(75deg) translateY(-200px);
        }

        .ring:nth-child(16) {
            color: #aaff00;
            transform: rotateX(80deg) translateY(-200px);
        }

        .ring:nth-child(17) {
            color: #95ff00;
            transform: rotateX(85deg) translateY(-200px);
        }

        .ring:nth-child(18) {
            color: #80ff00;
            transform: rotateX(90deg) translateY(-200px);
        }

        .ring:nth-child(19) {
            color: #6aff00;
            transform: rotateX(95deg) translateY(-200px);
        }

        .ring:nth-child(20) {
            color: #55ff00;
            transform: rotateX(100deg) translateY(-200px);
        }

        .ring:nth-child(21) {
            color: #40ff00;
            transform: rotateX(105deg) translateY(-200px);
        }

        .ring:nth-child(22) {
            color: #2bff00;
            transform: rotateX(110deg) translateY(-200px);
        }

        .ring:nth-child(23) {
            color: #15ff00;
            transform: rotateX(115deg) translateY(-200px);
        }

        .ring:nth-child(24) {
            color: lime;
            transform: rotateX(120deg) translateY(-200px);
        }

        .ring:nth-child(25) {
            color: #00ff15;
            transform: rotateX(125deg) translateY(-200px);
        }

        .ring:nth-child(26) {
            color: #00ff2b;
            transform: rotateX(130deg) translateY(-200px);
        }

        .ring:nth-child(27) {
            color: #00ff40;
            transform: rotateX(135deg) translateY(-200px);
        }

        .ring:nth-child(28) {
            color: #00ff55;
            transform: rotateX(140deg) translateY(-200px);
        }

        .ring:nth-child(29) {
            color: #00ff6a;
            transform: rotateX(145deg) translateY(-200px);
        }

        .ring:nth-child(30) {
            color: #00ff80;
            transform: rotateX(150deg) translateY(-200px);
        }

        .ring:nth-chi.........完整代码请登录后点击上方下载按钮下载查看

网友评论0