css hover link style : demo 105

CSS

(Fonts required: Baloo Chettan 2.)
                        .link{
                            color: #222f3e;
                            font-family: 'Baloo Chettan 2', cursive;
                            font-size: 30px;
                            font-weight: 600;
                            line-height: 17px;
                            text-transform: uppercase;
                            letter-spacing: 1px;
                            display: inline-block;
                            margin: 5px;
                            position: relative;
                            z-index: 1;
                            transition: all 0.4s ease 0.15s;
                        }
                        .link:focus,
                        .link:hover{
                            color: #341f97;
                            text-shadow: 5px 5px 0 rgba(0,0,0,0.1);
                        }
                        .link:before{
                            content: "";
                            visibility: hidden;
                            position: absolute;
                            top: -5px;
                            left: -5px;
                            right: -5px;
                            bottom: -5px;
                            z-index: -1;
                        }
                        .link:hover:before{ animation: animate 0.5s ease-in; }
                        @keyframes animate{
                            20%{ visibility: visible; }
                            40%{ background-color: #341f97; }
                            60%{ transform: rotate(10deg); }
                            80%{ transform: rotate(-10deg); }
                            100%{
                                transform: rotate(0);
                                visibility: hidden;
                            }
                        }
                        @media only screen and (max-width: 767px){
                            .link{ margin-bottom: 30px; }
                        }
                    
License Terms