Pen Settings

HTML

CSS

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

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

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.

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

              
                <main>
	<section>
		<div>
			<button data-cooltipz-dir="left" aria-label="Hello there!">Left</button>
			<button data-cooltipz-dir="top" aria-label="Hello there!">Top</button>
			<button data-cooltipz-dir="bottom" aria-label="Hello there!">Bottom</button>
			<button data-cooltipz-dir="right" aria-label="Hello there!">Right</button>
		</div>
		<div>
			<button data-cooltipz-dir="bottom-left" aria-label="Hello there!">Bottom left</button>
			<button data-cooltipz-dir="top-left" aria-label="Hello there!">Top left</button>
			<button data-cooltipz-dir="top-right" aria-label="Hello there!">Top right</button>
			<button data-cooltipz-dir="bottom-right" aria-label="Hello there!">Bottom right</button>
		</div>
		<div>
			<button data-cooltipz-dir="top" data-cooltipz-size="small" aria-label="Hello there! I am a small tooltip and I will wrap the text within me.">
				Small
			</button>
			<button data-cooltipz-dir="top" data-cooltipz-size="medium" aria-label="Hello there! I am a medium tooltip and I will wrap the text within me. I'm wider thhan the small tooltip.">
				Medium
			</button>
			<button data-cooltipz-dir="top" data-cooltipz-size="large" aria-label="Hello there! I am a large tooltip and I will wrap the text within me. I'm wider thhan the small and the medium tooltip.">
				Large
			</button>
			<button style="min-width: 8rem;" data-cooltipz-dir="top" data-cooltipz-size="fit" aria-label="Hello there! I am a 'fit' tooltip and I will wrap the text within me. My width will always be equal to the width of my parent element.">
				Fit
			</button>
		</div>
		<div>
			<button data-cooltipz-dir="top" data-cooltipz-static aria-label="Hello there!">
				No animation
			</button>
			<button data-cooltipz-dir="top" data-cooltipz-visible aria-label="Hello there!">
				Visible
			</button>
		</div>
		<div>
			<button data-cooltipz-dir="top" aria-label="HTML character codes: &copy; &reg; &#9742; &#9850; &#8709;">HTML Codes &#9835;</button>
			<button data-cooltipz-dir="top" aria-label="Emojis: 😎🚗🍔💩👏✔❤">Emojis 😎</button>
			<button data-cooltipz-dir="top" aria-label="Multilingual: こんにちは | ਸਤ ਸ੍ਰੀ ਅਕਾਲ | हैलो">Multilingual</button>
			<button data-cooltipz-dir="top" aria-label="Font Awesome: &#xf03e; &#xf200; &#xf188; &#xf007;">Font Awesome</button>
		</div>
	</section>
	<p>Made with <span aria-label="coolness" data-cooltipz-dir="top">😎</span> by <a href="https://jackdomleo.dev" rel="nofollow" target="_blank" class="link">Jack Domleo</a></p>
</main>
              
            
!

CSS

              
                :root {
	--cooltipz-fontawesome: FontAwesome;
}

/* Nothing to do with Cooltipz.css, just making the examples look pretty */

body {
	min-height: 100%;
	font-family: Verdana, Arial, sans-serif;
	padding-bottom: 2rem;
}

body,
main,
section {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

main {
	div {
		margin: 2rem;
		display: flex;
		align-items: center;
		gap: 0.5rem;
		justify-content: center;
		flex-wrap: wrap;
	}
}

              
            
!

JS

              
                // npm i cooltipz-css --save
//
// yarn add cooltipz-css
//
// https://cooltipz.jackdomleo.dev
//
// Created by Jack Domleo
// https://jackdomleo.dev | @JackDomleo
//
// If you can customise any other tooltips that you'd like to have featured on here, tweet about it on Twitter with the hashtag #cooltipzcss and tag @jackdomleo7

              
            
!
999px

Console