buttons style : demo 71

HTML

(CSS Framwork: Bootstrap)

CSS

(Fonts required: Chakra Petch.)
                        :root{
                            --cl_bl: #333;
                            --bg_mg: #6eaa40;
                            --bg_or: #ff7f51;
                            --bg_gr: #1ca685;
                            --bg_re: #e53e35;
                        }
                        .btn{
                            color: var(--cl_bl);
                            font-family: 'Ubuntu', sans-serif;
                            font-size: 22px;
                            letter-spacing: 1px;
                            font-weight: 700;
                            text-transform: uppercase;
                            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);
                            width: 100%;
                            height: 26%;
                            transform: rotateX(90deg);
                            position: absolute;
                            left: 0;
                            top: 0;
                            z-index: -1;
                            -webkit-clip-path: polygon(7% 0%, 93% 0%, 100% 100%, 0% 100%);
                            clip-path: polygon(7% 0%, 93% 0%, 100% 100%, 0% 100%);
                            transition: top 0.3s, transform 0.3s;
                        }
                        .btn:after,
                        .btn span:after{
                            background-color: #8abc62;
                            -webkit-clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%);
                            clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%);
                        }
                        .btn:hover:before,
                        .btn:hover:after,
                        .btn:hover span:before,
                        .btn:hover span:after{
                            transform: rotateX(0);
                        }
                        .btn:hover:after{ top: 25%; }
                        .btn:hover span:before{ top: 50%; }
                        .btn:hover span:after{ top: 75%; }
                        .btn.orange:before,
                        .btn.orange:after,
                        .btn.orange span:before,
                        .btn.orange span:after{
                            background-color: var(--bg_or);
                        }
                        .btn.orange:after,
                        .btn.orange span:after{
                            background-color: #ff9f7f;
                        }
                        .btn.green:before,
                        .btn.green:after,
                        .btn.green span:before,
                        .btn.green span:after{
                            background-color: var(--bg_gr);
                        }
                        .btn.green:after,
                        .btn.green span:after{
                            background-color: #37bf9d;
                        }
                        .btn.red:before,
                        .btn.red:after,
                        .btn.red span:before,
                        .btn.red span:after{
                            background-color: var(--bg_re);
                        }
                        .btn.red:after,
                        .btn.red span:after{
                            background-color: #f26a63;
                        }
                        .btn-sm{ font-size: 20px; }
                        .btn-xs{ font-size: 17px; }
                        @media only screen and (max-width: 767px){
                            .btn{ margin-bottom: 20px; }
                        }
                    
License Terms