title: hover effect tooltip following mouse
body: <p>I have little issue with css where I cant get working properly with transform. If tooltip has more text then it will be so much space between mouse and tooltip.</p>
  <p>How to add all tooltips same space?</p>
  <p>My code:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> 
  $('.tooltipLink').hover(function () {
       var title = $(this).attr('data-tooltip');
       $(this).data('tipText', title);
       if(title == ''){}
       else{
          $('&lt;p class="tooltip"&gt;&lt;/p&gt;').fadeIn(200).text(title).appendTo('body');
       }
   }, function () {
       $(this).attr('data-tooltip', $(this).data('tipText'));
       $('.tooltip').fadeOut(200);
   }).mousemove(function (e) {
       var mousex = e.pageX;
       var mousey = e.pageY;
       $('.tooltip').css({
           top: mousey,
           left: mousex
       })
   });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.tooltip {
    transform: translate(-50%, -200%);
    display: none;
    position: absolute;
    color: #F0B015;
    background-color: #000;
    border: none;
    border-radius: 4px;
    padding: 15px 10px;
    z-index: 10;
    display: block;
    width: 100%;
    max-width: 200px;
    top: 0;
    left: 50%;
    text-align: center;
  }
  .tooltip:after {
    content: "";
    display: block;
    position: absolute;
    border-color: #000000 rgba(0, 0, 0, 0);
    border-style: solid;
    border-width: 15px 15px 0;
    bottom: -13px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 0;
  }
  /* ----------------------- Display ------------------------ */
  * {
    box-sizing: border-box;
  }
  body {
    font-family: "Quicksand", sans-serif;
    text-align: center;
    padding: 20px 50px 0;
    background: #222;
    color: #eee;
    height: 100vh;
  }
  .wrapper {
    margin: 100px auto;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: flex-start;
    /*     overflow: auto; */
  }
  .wrapper &gt; * {
    margin-bottom: 100px;
    flex-shrink: 0;
    max-width: 300px;
  }
  img {
    max-width: 300px;
  }
  hr {
    max-width: 100px;
    margin: 30px auto 0;
    border-bottom: 1px solid #444;
  }
  h1 {
    color: #F0B015;
    font-size: 2em;
  }
  a {
    color: #eee;
  }
  input {
    text-align: left;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;h1&gt;Moving Tooltips on anything.&lt;/h1&gt; 
  &lt;h2&gt;Very light on the JS&lt;/h2&gt;
  &lt;hr&gt;
  
  &lt;div class="wrapper"&gt;
        
      &lt;a href="" class="tooltipLink" data-tooltip="space Anna Sale creates on the WNYC podcast Death, Sex, and Money. Her show is"&gt;I'm a hyperlink&lt;/a&gt;
   
      &lt;p class="tooltipLink" data-tooltip="space Anna Sale creates on the WNYC podcast Death, Sex, and Money. Her show isspace Anna Sale creates on the WNYC podcast Death, Sex, and Money. Her show isspace Anna Sale creates on the WNYC podcast Death, Sex, and Money. Her show is"&gt; &lt;strong&gt;A Paragraph&lt;/strong&gt;&lt;br&gt;&lt;br&gt;space Anna Sale creates on the WNYC podcast Death, Sex, and Money. Her show is, in this moment, powerful; the empathy she extends to her guests feels real and deep; the conversations&lt;/p&gt;
  
      &lt;input type="text" class="tooltipLink" data-tooltip="space Anna Sale creates on the WNYC podcast Death, Sex, and Money. Her show isspace Anna Sale creates on the WNYC podcast Death, Sex, and Money. Her show isspace Anna Sale creates on the WNYC podcast Death, Sex, and Money. Her show isspace Anna Sale creates on the WNYC podcast Death, Sex, and Money. Her show isspace Anna Sale creates on the WNYC podcast Death, Sex, and Money. Her show isspace Anna Sale creates on the WNYC podcast Death, Sex, and Money. Her show is" value="text input"&gt;&lt;/input&gt;
  
  &lt;button type="text" class="tooltipLink" data-tooltip="I am a Button!"&gt;Button&lt;/button&gt;
  
      &lt;img class="tooltipLink" data-tooltip="space Anna Sale creates on the WNYC podcast Death, Sex, and Money. Her show isspace Anna Sale creates on the WNYC podcast Death, Sex, and Money. Her show is" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/30256/karate.jpg"&gt;
       
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>I have tried play with transform but no help. if I make -200%  smaller amount then there where is less text it doesnt work. Its gonna like flash or not working at all.</p>