JSFiddle - React, Tailwind, and code Playground
HTML
<script src="//onehackoranother.com/projects/jquery/tipsy/javascripts/jquery.tipsy.js"></script>
<button class="botao-gosto" title="Algum texto">Like</button>
<button class="botao-gosto" title="Outro texto">Another Like</button>
<button class="botao-gosto" title="Ainda outro texto?">Cool</button>
CSS
.wrapper {
background-color: #A1BEE6;
padding: 5px 20px;
}
.wrapperToo {
background-color: #F4F37A;
padding: 5px 20px;
}
h3 {
background-color: #fff;
padding: 5px;
}
.like-button {
margin-bottom: 20px;
display: block;
}
.botao-gosto {
margin-bottom: 20px;
display: block;
}
/* toolstip plugin */
.tipsy {
font-size: 12px;
position: absolute;
padding: 5px;
z-index: 100000;
}
.tipsy-inner {
background-color: #000;
color: #FFF;
max-width: 150px;
padding: 5px 8px 4px 8px;
text-align: center;
}
/* Rounded corners */
.tipsy-inner {
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
/* Uncomment for shadow */
/*.tipsy-inner { box-shadow: 0 0 5px #000000; -webkit-box-shadow: 0 0 5px #000000; -moz-box-shadow: 0 0 5px #000000; }*/
.tipsy-arrow {
position: absolute;
width: 0;
height: 0;
line-height: 0;
border: 5px dashed #000;
}
/* Rules to colour arrows */
.tipsy-arrow-n {
border-bottom-color: #000;
}
.tipsy-arrow-s {
border-top-color: #000;
}
.tipsy-arrow-e {
border-left-color: #000;
}
.tipsy-arrow-w {
border-right-color: #000;
}
.tipsy-sw .tipsy-arrow {
bottom: 0;
left: 10px;
border-top-style: solid;
border-bottom: none;
border-left-color: transparent;
border-right-color: transparent;
}
.tipsy-s .tipsy-arrow {
bottom: 0;
left: 50%;
margin-left: -5px;
border-top-style: solid;
border-bottom: none;
border-left-color: transparent;
border-right-color: transparent;
}
.tipsy-e .tipsy-arrow {
right: 0;
top: 50%;
margin-top: -5px;
border-left-style: solid;
border-right: none;
border-top-color: transparent;
border-bottom-color: transparent;
}
.tipsy-w .tipsy-arrow {
left: 0;
top: 50%;
margin-top: -5px;
border-right-style: solid;
border-left: none;
border-top-color: transparent;
border-bottom-color: transparent;
}
JavaScript
$('button').tipsy({fade: true, gravity: 'w', delayIn: 500, delayOut: 1000});