Border-style Css Codepen Type | Border Animation Pink And Green Html Css Code








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

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            margin0;
            padding0;
            min-height100vh;
            font-familysans-serif;
            -webkit-tap-highlight-colorrgba(0000);
        }

        .hero {
            min-height100vh;
            width100%;
            background#1b1b1b;
            positionabsolute;

        }

        div {
            box-sizingborder-box;
        }

        /*main box*/
        .main-box {
            width320px;
            height480px;
            positionrelative;
            margin6% auto;
            background#1b1b1b;
            displayflex;
            justify-contentcenter;
            align-itemscenter;
            overflowhidden;
        }

        .sp {
            positionabsolute;
            transition0.5s;
        }

        .sp-t {
            top0;
            right0;
            width200px;
            height2px;
            backgroundlinear-gradient(to lefttransparent#ff00aa#00ff22);
            animation: anim2 2s linear infinite;
            transformtranslateY(-300%);
            animation-delay0.8s;
        }

        .sp-r {
            bottom0;
            right0;
            width2px;
            height200px;
            backgroundlinear-gradient(to toptransparent#00ff4c#ff0095);
            animation: anim1 2s linear infinite;
            animation-delay0s;
        }

        .sp-b {
            right0;
            bottom0;
            width200px;
            height2px;
            backgroundlinear-gradient(to lefttransparent#01ff4d#ff009d);
            animation: anim2 2s linear infinite;
        }

        .sp-l {
            left0;
            top0;
            width2px;
            height200px;
            backgroundlinear-gradient(to toptransparent#ff0062#01ff4d);
            animation: anim1 2s linear infinite;
            animation-delay1s;
            transformtranslateX(-300%);
        }

        @keyframes anim1 {
            0% {
                transformtranslateY(300%);

            }

            100% {
                transformtranslateY(-300%);

            }
        }

        @keyframes anim2 {
            0% {
                transformtranslateX(300%);
            }

            100% {
                transformtranslateX(-300%);

            }
        }

        /*main box end*/

        .form-box {
            width316px;
            height476px;
            positionrelative;
            background#252525;
            padding5px;
            overflowhidden;
            z-index5;
        }
    </style>
</head>

<body>
    <div class="hero">
        <div class="main-box">
            <div class="form-box">
                <div id="after"></div>
            </div>
            <span class="sp sp-t"></span>
            <span class="sp sp-r"></span>
            <span class="sp sp-b"></span>
            <span class="sp sp-l"></span>
        </div>
    </div>
</body>
</html>
 


 

  • Border-style Css
  • Border Animation Css
  • Css Animate Border Left To Right
  • Border Animation Css Codepen
  • Border-color In Css
  • Border-style - Css 
  • Border Animation Css

How To Use This Cord

steps

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.