Tooltips Super Duper Keren Dengan CSS3 | Kalau kemarin cuma iseng - iseng aja buat tooltips, kali ini malah di ubah tetapi tetap pada transition & pseudo element. Cocok untuk blog yang mengutamakan penampilan. Silahkan lihat ilustrasinya....


Bagaimana? tertarik ? langsung di pasang....

CSS


a.tooltip {
position: relative;
display: inline;
}

a.tooltip span {
width: 100px;
height: auto;
line-height: 20px;
padding: 10px;
left: 50%;
margin-left: -64px;
font-family: 'Alegreya SC', Georgia, serif;
font-weight: 400;
font-style: italic;
font-size: 14px;
color: #719DAB;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
text-align: center;
border: 4px solid rgba(106, 131, 227, 0.4);
background: rgba(255,255,255,0.3);
text-indent: 0px;
border-radius: 5px;
position: absolute;
pointer-events: none;
bottom: 100px;
opacity: 0;
box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;

}

a.tooltip span:after {
bottom: -14px;
margin-left: -10px;
border-top: 10px solid #fff;

}

a.tooltip span:before, a.tooltip span:after {
content: '';
position: absolute;
bottom: -15px;
left: 50%;
margin-left: -9px;
width: 0;
height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-top: 10px solid rgba(106, 131, 227, 0.4);
}

a:hover.tooltip span {
visibility: visible;
opacity: 0.8;
bottom: 30px;
z-index: 999;
visibility: visible;
opacity: 0.9;
-webkit-transform: translate(0px) rotate(0deg) scale(1);
-moz-transform: translate(0px) rotate(0deg) scale(1);
-o-transform: translate(0px) rotate(0deg) scale(1);
-ms-transform: translate(0px) rotate(0deg) scale(1);
transform: translate(0px) rotate(0deg) scale(1);
}

HTML

<a class="tooltip" href="#">Add On Fb<span>Facebook</span></a>
<a class="tooltip" href="#">Add Circle<span>Goggle +</span></a>
<a class="tooltip" href="#">Follow Me<span>Twitter</span></a>

Selamat mencoba bro...

6 comments:

 
D2D :] © 2013. All Rights Reserved. Powered by Blogger
Top