buttons style : demo 70

HTML

(CSS Framwork: Bootstrap)

CSS

(Fonts required: Chakra Petch.)
                        :root{
                            --cl_wh: #fff;
                            --cl_bl: #132894;
                            --bg_mg: #e53754;
                            --bg_or: #ff7f51;
                            --bg_gr: #1ca685;
                            --bg_re: #e53e35;
                        }
                        .btn{
                            color: var(--cl_bl);
                            font-family: 'Chakra Petch', sans-serif;
                            font-size: 22px;
                            letter-spacing: 1px;
                            font-weight: 700;
                            text-transform: uppercase;
                            border:2px dashed var(--cl_bl);
                            border-radius: 25px;
                            overflow: hidden;
                            position: relative;
                            z-index: 1;
                            transition:all 0.3s ease-in-out;
                        }
                        .btn:hover{ color: #fff; }
                        .btn:before,
                        .btn:after,
                        .btn span:before,
                        .btn span:after{
                            content: '';
                            background-color: var(--bg_mg);
                            height: 50%;
                            width: 50%;
                            opacity: 0;
                            position: absolute;
                            left: 50%;
                            top: 0;
                            z-index: -1;
                            transition: all 0.3s ease-in-out;
                        }
                        .btn:after{ top: 50%; }
                        .btn span:before{
                            left: 0;
                            top: 0;
                        }
                        .btn span:after{
                            left: 0;
                            top: 50%;
                        }
                        .btn:hover:before,
                        .btn:hover:after,
                        .btn:hover span:before,
                        .btn:hover span:after{
                            opacity: 1;
                        }
                        .btn:hover:before{
                            left: 0;
                            top: 0;
                        }
                        .btn:hover:after{ top: 0; }
                        .btn:hover span:before{ top: 50%; }
                        .btn:hover span:after{
                            top: 50%;
                            left: 50%;
                        }
                        .btn.orange:before,
                        .btn.orange:after,
                        .btn.orange span:before,
                        .btn.orange span:after{
                            background-color: var(--bg_or);
                        }
                        .btn.green:before,
                        .btn.green:after,
                        .btn.green span:before,
                        .btn.green span:after{
                            background-color: var(--bg_gr);
                        }
                        .btn.red:before,
                        .btn.red:after,
                        .btn.red span:before,
                        .btn.red span:after{
                            background-color: var(--bg_re);
                        }
                        .btn-sm{ font-size: 20px; }
                        .btn-xs{ font-size: 18px; }
                        @media only screen and (max-width: 767px){
                            .btn{ margin-bottom: 20px; }
                        }
                    
License Terms