<div class="hover">
	hover on me
</div>
.hover {
	width: 200px;
	height: 40px;
	line-height: 40px;
	margin: 50px auto;
	background: #333333;
	font-family: sans-serif;
	font-size: 16px;
	color: #fff;
	font-weight: bolder;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	border-radius: 5px;
	
	position: relative;
	z-index: 1;
}

/*** tooltip/arrow ***/
.hover:before {
	position: absolute;
	content: 'tooltip';
	font-family: sans-serif;
	height: 30px;
	line-height: 30px;
	padding: 0 10px;
	border-radius: 5px;
	font-size: 12px;
	display: inline;
	background: #000000;
	color: #fff;
	
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
}

.hover:after {
	position: absolute;
	content: '';
	border-top: 5px solid #000;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	
	bottom: calc(100% + 5px);
	left: 50%;
	transform: translateX(-50%);
}

.hover:before,
.hover:after {
	visibility: hidden;
	opacity: 0;
	transition: all .3s ease-in-out;
}

.hover:hover:before,
.hover:hover:after {
	visibility: visible;
	opacity: 1;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.