<html><body>
	<div class="wrap">
		<button><span class="type-1">ボタン1</span></button>

		<button><span class="type-2">ボタン2</span></button>

		<button><span class="type-3">ボタン3</span></button>
	</div>
</body></html>
*, *:before, *:after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: "Helvetica Neue", "メイリオ", Meiryo, Helvetica, Arial, "游ゴシック", YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "MS Pゴシック", "MS PGothic", sans-serif;
}
html, body {
	width: 100%;
	height: 100%;
}
.wrap {
	display: flex;
	height: 100%;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}
button {
	margin: 1em;
	cursor: pointer;
	outline: none;
	font-size: 2em;
}
button span {
	display: block;
	padding: .5em 2em;
	border-radius: 5px;
	transition: 500ms;
}

.type-1 {
	background: #222;
	color: #fff;
}

.type-1:hover,
button:hover .type-1,
button:focus .type-1 {
	transform: translateY(-1em);
}
.type-2 {
	background: #222;
	color: #fff;
}
.type-2:hover,
button:hover .type-2,
button:focus .type-2 {
	transform: rotateZ(20deg);
}
.type-3 {
	background: #222;
	color: #fff;
}
.type-3:hover,
button:hover .type-3,
button:focus .type-3 {
	transform: scale(.8);
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.