buttons style : demo 98

HTML

(CSS Framwork: Bootstrap)

CSS

(Fonts required: Tomorrow.)
                        .btn{
                            color: #fff;
                            background-color: #3c40c6;
                            font-family: 'Tomorrow', sans-serif;
                            font-size: 17px;
                            font-weight: 700;
                            letter-spacing: 1px;
                            text-transform: uppercase;
                            padding: 10px 20px;
                            border: none;
                            border-radius: 0;
                            position: relative;
                            z-index: 1;
                            transition: all 0.4s ease 0s;
                        }
                        .btn:hover{
                            color: #fff;
                            border-radius: 30px;
                            box-shadow: 0 0 5px -2px #333;
                        }
                        .btn:before,
                        .btn:after{
                            content: "";
                            background: #ff3f34;
                            width: 50%;
                            height: 100%;
                            border-radius: 30px 0 0 30px;
                            opacity: 0;
                            transform: perspective(300px) rotateY(-100deg);
                            transform-origin: right center;
                            position: absolute;
                            top: 0;
                            left: 0;
                            z-index: -1;
                            transition: all 0.4s ease 0s;
                        }
                        .btn:after{
                            border-radius: 0 30px 30px 0;
                            transform: perspective(300px) rotateY(100deg);
                            transform-origin: left center;
                            left: auto;
                            right: 0;
                        }
                        .btn:hover:before,
                        .btn:hover:after{
                            opacity: 1;
                            transform: perspective(600px) rotateY(0);
                        }
                        .btn.blue{ background-color: #0fbcf9; }
                        .btn.green{ background-color: #05c46b; }
                        .btn.gray{ background-color: #485460; }
                        .btn:hover{ background-color: transparent; }
                        @media only screen and (max-width: 767px){
                            .btn{ margin-bottom: 20px; }
                        }
                    
License Terms