Tue, 2013-11-26 10:47
people,
I'm using css tooltip design, but my fade out effect is not working. Fade in is working as it's supposed to, but fade out is not happening at all. I can't find a problem to fix it. can anyone help?
Code I'm using is:
.tooltip { border-bottom: 1px dotted #000000; color: #000000; outline: none; cursor: help; text-decoration: none; position: relative; } .tooltip span { left: -999em; position: absolute; visibility:hidden; opacity:0; transition:visibility 0.5s linear,opacity 0.5s linear; -moz-transition:visibility 0.5s linear 0.5s,opacity 0.5s linear; } .tooltip:hover span { border-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); -moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); font-family: Calibri, Tahoma, Geneva, sans-serif; position: absolute; left: 1em; top: 2em; z-index: 99; left: 0; width: 250px; visibility:visible; opacity:1; transition-delay:0s; } .tooltip:hover img { border: 0; margin: -10px 0 0 -55px; float: left; position: absolute; } .tooltip:hover em { font-family: Candara, Tahoma, Geneva, sans-serif; font-size: 1.2em; font-weight: bold; display: block; padding: 0.2em 0 0.6em 0; } .classic { padding: 0.8em 1em; } .custom { padding: 0.5em 0.8em 0.8em 2em; } * html a:hover { background: transparent; } .classic {background: #FFFFAA; border: 1px solid #FFAD33; } .critical { background: #FFCCAA; border: 1px solid #FF3334; } .help { background: #9FDAEE; border: 1px solid #2BB0D7; } .info { background: #9FDAEE; border: 1px solid #2BB0D7; color: #000000; } .warning { background: #FFFFAA; border: 1px solid #FFAD33; }