PowerTip Demo
A few examples of the jQuery PowerTip plugin in action.
HTML
<script src="https://stevenbenner.github.io/jquery-powertip/scripts/jquery.powertip.js"></script>
<link rel="stylesheet" href="https://stevenbenner.github.io/jquery-powertip/styles/jquery.powertip.css">
<div id="mouseon-examples">
<div><ul><li><a href="xx">Not working tooltip</a></li></ul></div>
</div>
<nav class="templatemo-top-nav">
<ul><li><a href="xy">Working Tooltip<span>TEXT IN TOOLTIP</span></a></li></ul>
</nav>
CSS
body {
background-color: #98AF27;
text-align: center;
}
#mouseon-examples div {
background-color: #98AF27;
margin-top: 20px;
margin-bottom: 20px;
height: 30px;
padding:3px;
}
#powerTip {
cursor: default;
background-color: white;
border-radius: 6px;
color: #fff;
display: none;
padding: 10px;
position: absolute;
white-space: nowrap;
z-index: 2147483647;
box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
-webkit-transform: translate(35px) rotate(25deg) scale(1.5);
-moz-transform: translate(35px) rotate(25deg) scale(1.5);
-o-transform: translate(35px) rotate(25deg) scale(1.5);
-ms-transform: translate(35px) rotate(25deg) scale(1.5);
transform: translate(35px) rotate(25deg) scale(1.5);
-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;
}
#powerTip:before {
content: "";
position: absolute;
}
#powerTip.s:before {
border-bottom: 10px solid white;
top: -10px;
}
#powerTip:hover{
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);
}
.templatemo-top-nav li {
float: left;
list-style: none;
}
.templatemo-top-nav a {
color: black;
display: block;
padding: 0 50px;
}
.templatemo-top-nav li:first-child a {
color: white;
display: block;
padding: 0 10px;
font-weight: bold;
font-size: 15px;
}
.templatemo-top-nav li a{
display: block;
position: relative;
}
.templatemo-top-nav a:hover,
.templatemo-top-nav a.active {
color: white;
}
.templatemo-top-nav li .tt-gplus{
background-position: 0px 0px;
}
.templatemo-top-nav li a span{
width: 150px;
height: auto;
line-height: 20px;
padding:...
JavaScript
$('#mouseon-examples div').data('powertipjq', $([
'<a href="body">A</a> <a href="body2">B</a>'
].join('\n')));
$('#mouseon-examples div').powerTip({
placement: 's',
mouseOnToPopup: true
});