Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

  <div class="wrap">
    <h1>This is a tooltiper. It works with <span class="tooltiper"data-tooltip="Just wrap your element in any html element with tooltiper class and add your content inside a data-tooltip attribute">data attribute</span></h1>

<section class="content">
  <div class="wrap"><p><span class="tooltiper" data-tooltip="Siri, Google Now, Alexa, and Slackbots">Machine learning</span> techniques have progressed to the point where a new user interface is on the cusp of mass-market adoption: computer systems that understand enough natural human language to be useful and respond accordingly.  Siri, Google Now, Alexa, and <span class="tooltiper" data-tooltip="Bla bla blabla bla bla bla">Slackbots</span> are a few high-profile examples of voice or message-driven experiences that have gained some level of real-world use. Indeed, these and other AI systems are now open enough, and of high-enough quality, <span class="tooltiper" data-tooltip="Siri, Google Now, Alexa, and Slackbots">to</span> allow brands to begin interacting with customers and prospects through natural language. The result is the beginning of a new era in customer relationships that promises to be every bit transformative as social media and mobile devices were in the last decade.
    </p><p>In light of this, companies need to ask themselves one question: can your customers talk to your brand?
    </p><h4>An Inflection Point for Natural Language.
    </h4><p>Technology periodically forces a radical reshuffling of the mechanism in which brands build relationships with consumers.  Mass marketing was born in the industrial revolution as supply outstripped demand for the first time, necessitating print advertising. Radio, television, and then cable TV were the next sequential developments, each allowing progressively broader, more targeted, and more impactful communications.
    </p><p>The Internet revolution has brought us a radical change in people-to-brand communications roughly once each decade. First, the very idea of a website was novel, and 1995 saw a shift from call center and direct mail to web. The mid-aughts brought us the mobile and social revolution, where no brand communication strategy was complete without vibrant social media channels, mobile apps, and mobile web presence—indeed, today it is rare that a company is not mobile-first in its communications strategy.
    </p><p>Customer-service solutions have toyed with automated phone and email responses-- to much consumer frustration--for a generation, but the mid-teens mark an inflection point in machine learning as it relates to natural language. Finally, computer systems can translate the unstructured data of human speech and reliably convert it into structured data. This structured data can then be processed like any other data input by a user, allowing the computer to perform actions and generate a natural language response. The result: real-world applications of natural language interfaces are ready for prime time. These natural language—or conversational—interfaces can be by voice or text, accessible by speaking into a microphone or typing into a text box.
    </p><p>More excitingly, the leading conversational interface platforms are, allowing third-party development of “conversational apps.”  Alexa, Siri, Google Now, iMessage, and Slack are a few of the long list of conversational interface platforms that do, or will soon, allow the development of third-party applications. And, artificial intelligence platforms such as and Microsoft Cognitive Services simplify the development of conversational apps, standardizing natural language processing and simplifying access to conversational platforms.
              @import url(',700');

* {
  background: transparent;

body {
  background: #f3f3f3;
  font-family: 'Montserrat', sans-serif;

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;

.wrap {
  width: 90%;
  max-width: 1024px;
  margin: 0 auto;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);

header {
  height: 450px;
  background: #fff;
  text-align: center;

header h1 {
  font-size: 72px;

.content .wrap {
  padding-right: 300px;
  top: 100px;
  transform: none;
  -moz-transform: none;
  -webkit-transform: none;

.content .wrap p {
  margin-bottom: 30px;
  line-height: 1.8em;

.tooltiper {
  position: relative;
  display: inline-block;
  color: tomato;

.tooltiper .tooltip {
  min-width: 100px;
  position: absolute;
  font-size: 0.7rem;
  text-align: center;
  background: tomato;
  color: white;
  padding: 3%;
  border-radius: 5px;
  display: block;
  top: 0;left: 0;right: 0;
  margin: 0 auto;
  transform: translateY(-100%) translateX(-50%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.64, 0.57, 0.67, 1.53), opacity 0.1s ease-out 0.1s;
  display: none;
.tooltiper:hover .tooltip {
  transform: translateY(0) translateX(-50%);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.64, 0.57, 0.67, 1.53), opacity 0.1s ease-out;
  display: block;
.tooltiper .tooltip:after {
  position: absolute;
  left: 50%;
  margin: 0 auto;
  bottom: -7px;
  transform: translateX(-50%);
  height: 0;
  border-style: solid;
  border-width: 7px 7px 0 7px;
  border-color: tomato transparent transparent transparent;
              var elements = '';

var eLtop = '';
var eLleft = '';
var eLtw = '';
var eLth = '';
var eLcontent= '';

function toolTiper(elements) {
      var eLcontent = $(this).attr('data-tooltip');
      var eLtop = $(this).position().top;
      var eLleft = $(this).position().left;
    $(this).append('<span class="tooltip">'+eLcontent+'</span>');
    var eLtw = $(this).find('.tooltip').width(),
        eLth = $(this).find('.tooltip').height();
      "top": (0 - eLth)+'px'
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.