Tooltips Paling Keren Dengan CSS3 | Belum selesai di masalah tooltips.Kemarin sudah lihat tooltips versi 1 dan 2 ? jika belum, klik disini atau disini. Masih memakai Pseudo Element & Transition. Hanya saja yang menjadi ada di border radius saja. Silakan dilihat.
CSS
a.tooltip { position: relative; display: inline; } a.tooltip span { width: 80px; height: 80px; line-height: 80px; padding: 10px; left: 50%; margin-left: -55px; 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: 5px solid #fff; background: rgba(255,255,255,0.5); text-indent: 0px; position: absolute; pointer-events: none; border-radius: 50%; bottom: -40px; opacity: 0; box-shadow: 0px 3px 8px rgba(0,0,0,0.1); -webkit-transform: scale(0.2); -moz-transform: scale(0.2); -o-transform: scale(0.2); -ms-transform: scale(0.2); transform: scale(0.2); -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:hover.tooltip span { opacity: 0.9; bottom: 20px; -webkit-transform: scale(1); -moz-transform: scale(1); -o-transform: scale(1); -ms-transform: scale(1); transform: 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>
manteb dah sob
ReplyDelete^_^ makasih sob..
Deletefungsinya buat apa mas,,??
ReplyDeletemaklum masih ingusan [-(
ciar tampilan user interfacenya lebih menarik :D
Delete