cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

  <li class="tooltip fade" data-title="Hypertext Markup Language">HTML
  <li class="tooltip fade" data-title="Cascading Stylesheets">CSS
  <li class="tooltip fade" data-title="Javascript">JS

  <li class="tooltip expand" data-title="Hypertext Markup Language">HTML
  <li class="tooltip expand" data-title="Cascading Stylesheets">CSS
  <li class="tooltip expand" data-title="Javascript">JS

  <li class="tooltip swing" data-title="Hypertext Markup Language">HTML
  <li class="tooltip swing" data-title="Cascading Stylesheets">CSS
  <li class="tooltip swing" data-title="Javascript">JS
              /* setup tooltips */
.tooltip {
  position: relative;
.tooltip:after {
  display: block;
  opacity: 0;
  pointer-events: none;
  position: absolute;
.tooltip:after {
	border-right: 6px solid transparent;
	border-bottom: 6px solid rgba(0,0,0,.75); 
  border-left: 6px solid transparent;
  content: '';
  height: 0;
    top: 20px;
    left: 20px;
  width: 0;
.tooltip:before {
  background: rgba(0,0,0,.75);
  border-radius: 2px;
  color: #fff;
  content: attr(data-title);
  font-size: 14px;
  padding: 6px 10px;
    top: 26px;
  white-space: nowrap;

/* the animations */
/* fade */
.tooltip.fade:before {
  transform: translate3d(0,-10px,0);
  transition: all .15s ease-in-out;
.tooltip.fade:hover:before {
  opacity: 1;
  transform: translate3d(0,0,0);

/* expand */
.tooltip.expand:before {
  transform: scale3d(.2,.2,1);
  transition: all .2s ease-in-out;
.tooltip.expand:after {
  transform: translate3d(0,6px,0);
  transition: all .1s ease-in-out;
.tooltip.expand:hover:after {
  opacity: 1;
  transform: scale3d(1,1,1);
.tooltip.expand:hover:after {
  transition: all .2s .1s ease-in-out;

/* swing */
.tooltip.swing:after {
  transform: translate3d(0,30px,0) rotate3d(0,0,1,60deg);
  transform-origin: 0 0;
  transition: transform .15s ease-in-out, opacity .2s;
.tooltip.swing:after {
  transform: translate3d(0,60px,0);
  transition: transform .15s ease-in-out, opacity .2s;
.tooltip.swing:hover:after {
  opacity: 1;
  transform: translate3d(0,0,0) rotate3d(1,1,1,0deg);

/* basic styling: has nothing to do with tooltips: */
h1 {
  padding-left: 50px;
ul {
  margin-bottom: 40px;
li {
  cursor: pointer; 
  display: inline-block; 
  padding: 0 10px;
🕑 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.
Loading ..................