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.

            
              <div class='center'>
	<div class='field'>
		<button class='has-tooltip'>This is a button</button>
		<span class='tooltip blue'><p>This is a blue tooltip</p></span>
	</div>
	<div class='field'>
		<button class='has-tooltip'>This is a button</button>
		<span class='tooltip red'>
			<p>This is a red tooltip</p>
			<img src="http://www.placehold.it/1920X1080" />
		</span>
	</div>
	
	<div class='field'>
		<button class='has-tooltip'>This is a button</button>
		<span class='tooltip green'>
			<p>This is a green tooltip</p>
		</span>
	</div>
	
	<div class='field'>
		<button class='has-tooltip'>This is a button</button>
		<span class='tooltip purple'>
			<p>This is a purple tooltip</p>
		</span>
	</div>
</div>	
            
          
!
            
              $blue: #47b8e0
$red: #E71D36
$green: #2EC4B6
$purple: #A593E0

*
	box-sizing: border-box

body
	min-height: 100vh
	display: flex
	justify-content: center
	align-items: center

body, button, input, textarea, select
	font-family: 'Raleway', sans-serif

.center
	width: 100%
	max-width: 1200px
	text-align: center
	margin: auto
	display: flex
	justify-content: center
	flex-wrap: wrap
	padding: 20px

button, .btn, input[type='submit']
	padding: 20px 60px
	border: none
	outline: none
	background: $blue
	transition: 0.15s ease-in-out
	color: white
	text-decoration: none
	border-radius: 5px
	display: inline-block
	&:hover, &:focus
		background: darken($blue, 10%)

.has-tooltip:hover + .tooltip,
.has-tooltip:focus + .tooltip,
.has-tooltip.hover + .tooltip	
	opacity: 1
	transform: translate(-50%, -100%) scale(1) rotate(0deg)
	pointer-events: inherit

.tooltip
	display: block
	position: absolute
	top: 0px
	left: 50%
	transform: translate(-50%, -50%) scale(0.75) rotate(5deg)
	transform-origin: bottom center
	padding: 10px 30px
	border-radius: 5px
	background: rgba(0,0,0,0.75)
	text-align: center
	color: white
	transition: 0.15s ease-in-out
	opacity: 0
	width: 100%
	max-width: 100vw
	pointer-events: none
	z-index: 5
	&.blue
		background: rgba($blue, 0.75)
		&:after
			border-top: 5px solid rgba($blue,0.75)
	&.red
		background: rgba($red, 0.75)
		&:after
			border-top: 5px solid rgba($red,0.75)
	&.green
		background: rgba($green, 0.75)
		&:after
			border-top: 5px solid rgba($green,0.75)
	&.purple
		background: rgba($purple, 0.75)
		&:after
			border-top: 5px solid rgba($purple,0.75)
	&:hover
		opacity: 1
		transform: translate(-50%, -100%) scale(1) rotate(0deg)
		pointer-events: inherit
	img
		max-width: 100%
	&:after
		content: ''
		display: block
		margin: 0 auto
		widtH: 0
		height: 0
		border: 5px solid transparent
		border-top: 5px solid rgba(0,0,0,0.75)
		position: absolute
		bottom: 0
		left: 50%
		transform: translate(-50%, 100%)

.field
	position: relative
	padding: 20px
            
          
!
999px
🕑 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 ..................

Console