buttons style : demo 103

HTML

(CSS Framwork: Bootstrap)

CSS

(Fonts required: Chakra Petch.)
                        .btn{
                            color: transparent;
                            font-family: 'Chakra Petch', sans-serif;
                            font-size: 22px;
                            font-weight: 800;
                            text-transform: uppercase;
                            letter-spacing: 1px;
                            padding: 7px 15px;
                            border: none;
                            border-radius: 0;
                            perspective: 500px;
                            transform-style: preserve-3d;
                            position: relative;
                            z-index: 1;
                            transition: all 0.5s;
                        }
                        .btn:hover{ color: transparent; }
                        .btn:before,
                        .btn:after{
                            content: attr(data-hover);
                            color: #27ae60;
                            background-color: #fff;
                            height: 100%;
                            width: 100%;
                            padding: 5px 15px;
                            border: 2px solid #27ae60;
                            transform: translateZ(0px);
                            transform-origin: 50% 50% -25px;
                            position: absolute;
                            top: 0;
                            left: 0;
                            transition: all 0.2s ease;
                        }
                        .btn:after{
                            color: #fff;
                            background-color: #27ae60;
                            transform: rotateX(90deg);
                            transform-origin: 50% 50% -25px;
                            visibility: hidden;
                            transition: all 0.2s ease 0.05s;
                        }
                        .btn:hover:before{ transform: translateZ(-200px); }
                        .btn:hover:after{
                            visibility: visible;
                            box-shadow: 0 0 10px rgba(0,0,0,0.3);
                            transform: rotateX(0deg);
                        }
                        .btn.blue:before{
                            color: #3498db;
                            border-color: #3498db;
                        }
                        .btn.blue:after{
                            background-color: #3498db;
                            border-color: #3498db;
                        }
                        .btn.purple:before{
                            color: #8e44ad;
                            border-color: #8e44ad;
                        }
                        .btn.purple:after{
                            background-color: #8e44ad;
                            border-color: #8e44ad;
                        }
                        .btn.red:before{
                            color: #e74c3c;
                            border-color: #e74c3c;
                        }
                        .btn.red:after{
                            background-color: #e74c3c;
                            border-color: #e74c3c;
                        }
                        @media only screen and (max-width: 767px){
                            .btn{ margin-bottom: 20px; }
                        }
                    
License Terms