CSS3 bouncing tooltip

bouncing tooltip

HTML

<a class="tooltip" href="http://www.google.com">ENES ERDEM TÜFEKÇİ</a>

<p style="position: relative; top: 100px;"><span class="tooltip2">NET BİLİŞİM<span>@ENS.PGE</span></span> </p>

CSS

a.tooltip {
    color: #fff;
    text-decoration: none;
}

.tooltip {
    top: 20px;
    left: 100px;
    position: relative;
    padding: 6px 10px;
    border: 1px solid #555;
    background-color: #ddd; 
    
    -webkit-border-radius: 4px;
    -webkit-box-shadow: 0 1px 5px 0px #ccc;
    
    -webkit-animation-name: bounce;
    -webkit-animation-duration: 1s;
    -webkit-animation-iteration-count: 10;
    -webkit-animation-direction: alternate;
    -webkit-animation-timing-function: ease-in-out;
    
    -moz-border-radius: 4px;
    -moz-box-shadow: 0 1px 5px 0px #ccc;
    
    -moz-animation-name: bounce;
    -moz-animation-duration: 1s;
    -moz-animation-iteration-count: 10;
    -moz-animation-direction: alternate;
    -moz-animation-timing-function: ease-in-out;
}

    .tooltip:hover {
        background: #ac8;
    }
    
        .tooltip:hover:after {
            border-bottom: 10px solid #ac8;
        }
    
    .tooltip:after{
        content: "";   
        position: absolute;
        top: -10px;
        left: 50%;
        margin-left: -10px;
        
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid #ddd;
    }
    .tooltip:before{
        content: "";
        position: absolute;
        top: -11px;
        left: 50%; 
        margin-left: -10px;
        
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid #555;
    }
    
    @-webkit-keyframes bounce {
     from {
       top: 20px;
     }
     to {
       top: 40px;
     }
    }
    
    @-moz-keyframes bounce {
     from {
       top: 20px;
     }
     to {
       top: 40px;
     }
    }

/***************************************/

.tooltip2 {
    position: relative;
    border-bottom: 1px dotted #000;
    -webkit-transition: all 2s ease;
}

    .tooltip2 span {
        position:...