Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <ul>
  <li>MENU1<span class="tooltip blue">MENU1</span></li>
  <li>MENU2<span class="tooltip red">MENU2</span></li>
  <li>MENU3<span class="tooltip green">MENU3</span></li>
</ul>
<ul>
  <li>MENU1<span class="tooltip brown">MENU1</span></li>
  <li>MENU2<span class="tooltip black">MENU2</span></li>
  <li>MENU3<span class="tooltip gray">MENU3</span></li>
</ul>
<p><a href="https://1-notes.com/css-tooltip-design-collection/" target="_blank" rel="noopener">CSSでマウスホバーで表示するバルーンポップ・ツールチップのデザイン集</a></p>
              
            
!

CSS

              
                ul {
	margin-top: 50px;
}

li {
	position: relative;
	display: inline-block;
	padding: 10px;
}

.tooltip {
	position: absolute;
	bottom: 2.5rem;
	left: 6px;
	padding: 6px 10px;
	background: #01579B;
	color: #FFF;
	font-size: 0.8rem;
	border-radius: 10px;
	transition: 0.5s;
	opacity: 0;
	filter: drop-shadow(5px 4px 2px rgba(0, 0, 0, 0.5));
}

li:hover .tooltip {
	opacity: 1;
}

/*以下カラー分け*/
.blue {
	background-image: repeating-linear-gradient(135deg, #0091EA 0px 6px, #01579B 6px 12px);
}

.red {
	background-image: repeating-linear-gradient(135deg, #FF5252 0px 6px, #D50000 6px 12px);
}

.green {
	background-image: repeating-linear-gradient(135deg, #00C853 0px 6px, #2E7D32 6px 12px);
}

.brown {
	background-image: repeating-linear-gradient(135deg, #5D4037 0px 6px, #3E2723 6px 12px);
}

.black {
	background-image: repeating-linear-gradient(135deg, #000000 0px 6px, #424242 6px 12px);
}

.gray {
	background-image: repeating-linear-gradient(135deg, #616161 0px 6px, #757575 6px 12px);
}
              
            
!

JS

              
                
              
            
!
999px

Console