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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

              a.tooltip(href="#" data-tooltip="New note from image")
              body {
  background: #FFBB02;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: Roboto;

.tooltip {
  background: url(https://cbwconline.com/IMG/Codepen/Image.svg) center/contain no-repeat;
  display: inline-block;
  position: relative;
  height: 36px;
  width: 36px;
  &:hover .inner {
    top: 120%;
    opacity: 1;
    visibility: visible;
    &:before {
      visibility: visible;
      transform: translate(-50%, -50%) scale(1);
      transition: .3s linear;

.inner {
  padding: 8px;
  border-radius: 4px;
  overflow: hidden;
  color: #E6E6E6;
  font-size: 14px;
  white-space: nowrap;
  position: absolute;
  top: 100%;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: .3s linear;
  pointer-events: none;
  &:before {
    content: '';
    background-color: #323232;
    height: 250px;
    width: 250px;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    visibility: hidden;
    z-index: -1;
    transform: translate(-50%, -50%) scale(0.1);    
    transition: .3s linear, transform 0s .3s linear;
              // Using JS is not necissary, it just simplifies the HTML.

// If you don't want to use JS, put a span with a class of `.inner` within the `.tooltip` element, and remove the `data-tooltip` attribute and put it's value within the span. 

var $info = $('.tooltip');
$info.each( function () {
  var dataInfo = $(this).data("tooltip");
  $( this ).append('<span class="inner" >' + dataInfo + '</span>');
Loading ..................