Button Border Animation


<style>
    *{
        margin0;
        padding0;
        box-sizingborder-box;
    }
    body{
        background-color#2a2a2a;
        displayflex;
        min-height100vh;
        justify-contentcenter;
        align-itemscenter;
    }
   .svgbtn a{
        font-sizexx-large;
        colorwhite;
        displayflex;
        text-decorationnone;
       positionabsolute;
       justify-contentcenter;
       flex-directionrow;
       align-itemscenter;
        text-aligncenter;
        width180px;
        height70px;
    }
    a svga svg rect{
        positionabsolute;
        filltransparent;
        top0;
        left0;
        width100%;
        height100%;
    }
    a svg rect{
        strokewhite;
        stroke-width4px;
        transition.5s;
        stroke-dasharray600,600;
        stroke-dashoffset0;
    }
    a:hover svg rect{
        stroke-dasharray100,400;
        stroke-dashoffset210;
    }
    .wrapper{
        displayflex;
        justify-contentspace-between;
        align-itemscenter;
    }
</style>
<body>
    
    <div class="wrapper">
        <div class="svgbtn">
            <a href="">
                <svg>
                    <rect>
                    </rect>
                </svg>
                Click Here</a>
        </div>
        
    </div>

</body>