リンクボタンいろいろ

Button01

ソースはここをクリック

<div class="button01">
	<a href="#">BUTTON</a>
</div>

/* [Button01 ]
------------------------------------------------ */
.button01 a {
	display: block;
	color: #909;
	font-size: 18px;
	font-weight: bold;
	border: 3px solid #909;
	line-height: 1;
	margin: auto;
	padding: 15px 0;
	text-align: center;
	width: 240px;
	}
.button01 a:hover {
	background: rgba(213,0,213,.3);
	}

CLOSE

Button02

ソースはここをクリック

<div class="button02">
	<a href="#" class="button">BUTTON</a>
</div>

/* [Button02 ]
------------------------------------------------ */
.button02 {
  padding: 20px 0;
  text-align: center;
}
.button02 .button {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #4f4f4f;
  border-radius: 4px;
  transition: all 0.2s ease-in;
  position: relative;
  overflow: hidden;
}
.button02 .button:before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scaleY(1) scaleX(1.25);
  top: 100%;
  width: 140%;
  height: 180%;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}
.button02 .button:after {
  content: "";
  position: absolute;
  left: 55%;
  transform: translateX(-50%) scaleY(1) scaleX(1.45);
  top: 180%;
  width: 160%;
  height: 190%;
  background-color: #39bda7;
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}
.button02 .button:hover {
  color: #ffffff;
  border: 1px solid #39bda7;
}
.button02 .button:hover:before {
  top: -35%;
  background-color: #39bda7;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}
.button02 .button:hover:after {
  top: -45%;
  background-color: #39bda7;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

CLOSE

Button03

ソースはここをクリック

<div class="button03">
	<button class="button spin circle">BTN BUTTON</button>
</div>

/* [Button03 ]
------------------------------------------------ */
.button03 button {
	background: none;
	border: 0;
	box-sizing: border-box;
	margin: 1em auto;
	padding: 1em 2em;
	box-shadow: inset 0 0 0 2px #f45e61;
	color: #f45e61;
	font-size: inherit;
	font-weight: 700;
	position: relative;
	vertical-align: middle;
	line-height: 1.3;
	}
.button03 button::before,
.button03 button::after {
	box-sizing: inherit;
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	}
.button03 .spin {
	width: 6em;
	height: 6em;
	padding: 0;
	}
.button03 .spin:hover {
	color: #0eb7da;
	}
.button03 .spin::before,
.button03 .spin::after {
	top: 0;
	left: 0;
	}
.button03 .spin::before {
	border: 2px solid #ddd;
	}
.button03 .spin:hover::before {
	border-top-color: #0eb7da;
	border-right-color: #0eb7da;
	border-bottom-color: #0eb7da;
	transition: border-top-color 0.15s linear, border-right-color 0.15s linear 0.1s, border-bottom-color 0.15s linear 0.2s;
	}
.button03 .spin::after {
	border: 0 solid transparent;
	}
.button03 .spin:hover::after {
	border-top: 2px solid #0eb7da;
	border-left-width: 2px;
	border-right-width: 2px;
	transform: rotate(270deg);
	transition: transform 0.4s linear 0s, border-left-width 0s linear 0.35s;
	}
.button03 .circle {
	border-radius: 100%;
	box-shadow: none;
	}
.button03 .circle::before,
.button03 .circle::after {
	border-radius: 100%;
	}

CLOSE

Button04

ソースはここをクリック

<div class="button04">
	<button class="btn-hover color1">BUTTON1</button>
	<button class="btn-hover color2">BUTTON2</button>
</div>

/* [Button04 ]
------------------------------------------------ */
.button04 {
	margin: 2rem auto;
	text-align: center;
	}
.button04 .btn-hover {
	width: 200px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	margin: 20px;
	height: 55px;
	text-align:center;
	border: none;
	background-size: 300% 100%;
	border-radius: 50px;
	moz-transition: all .4s ease-in-out;
	-o-transition: all .4s ease-in-out;
	-webkit-transition: all .4s ease-in-out;
	transition: all .4s ease-in-out;
	}
.button04 .btn-hover:hover {
	background-position: 100% 0;
	moz-transition: all .4s ease-in-out;
	-o-transition: all .4s ease-in-out;
	-webkit-transition: all .4s ease-in-out;
	transition: all .4s ease-in-out;
	}
.button04 .btn-hover:focus {
	outline: none;
	}

.button04 .btn-hover.color1 {
	background-image: linear-gradient(to right, #f5ce62, #e43603, #fa7199, #e85a19);
	box-shadow: 0 4px 15px 0 rgba(229, 66, 10, 0.75);
	}
.button04 .btn-hover.color2 {
	background-image: linear-gradient(to right, #25aae1, #40e495, #30dd8a, #2bb673);
	box-shadow: 0 4px 15px 0 rgba(49, 196, 190, 0.75);
	}

CLOSE

Button05

ソースはここをクリック

<div class="button05">
	<a href="#" class="popupLink"><span>文字列にhoverすると背景が下からカラーチェンジ</span></a>
</div>

/* [Button05 ]
------------------------------------------------ */
a.popupLink {
	position: relative;
	text-decoration: none;
	display: inline-block;
	color: #189d00;
	padding: .2rem .5rem;
	transition: color ease 0.3s;
	border-bottom: 1px dashed #eb6877;
	}
a.popupLink:after {
	content: '';
	position: absolute;
	z-index: -1;
	width: 100%;
	height: 0%;
	left: 0;
	bottom: 0;
	background: #eb6877;
	transition: all ease 0.3s;
	}
a.popupLink:hover {
	color: #fff;
	}
a.popupLink:hover:after {
	height: 100%;
	}

CLOSE

Button06

ソースはここをクリック

<div class="button06">
	<a href="#" class="btn btn-flat"><span>PUSH!</span></a>
</div>

/* [Button06 / Button07 共通 ]
------------------------------------------------ */
.btn,
a.btn,
button.btn {
	font-weight: 500;
	line-height: 1.5;
	position: relative;
	display: inline-block;
	padding: 1rem 4rem;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
	text-align: center;
	vertical-align: middle;
	text-decoration: none;
	letter-spacing: 0.1em;
	color: #212529;
	border-radius: 0.5rem;
	}

/* [Button06 ]
------------------------------------------------ */
/* Flat------------------------------------------*/
a.btn-flat {
	overflow: hidden;
	padding: 1.5rem 6rem;
	color: #fff;
	border-radius: 0;
	background: #00ced1;
	}

a.btn-flat span {
	position: relative;
	}
a.btn-flat:before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100px;
	height: 100px;
	content: '';
	-webkit-transition: all .5s ease-in-out;
	transition: all .5s ease-in-out;
	-webkit-transform: translateX(-80%) translateY(-25px);
	transform: translateX(-80%) translateY(-25px);
	border-radius: 50%;
	background: #eb6100;
	}
a.btn-flat:hover:before {
	width: 400px;
	height: 400px;
	-webkit-transform: translateX(-1%) translateY(-175px);
	transform: translateX(-1%) translateY(-175px);
	}

CLOSE

Button07

ソースはここをクリック

<a href="#" class="btn btn-circle">
	<span class="material-symbols-outlined">mail</span><br>お問い合わせ<br>はコチラ
</a>

/* [Button07 ]
------------------------------------------------ */
a.btn-circle {
	width: 140px;
	height: 135px;
	padding:10px 0 10px;
	border-radius: 50%;
	color: #fff;
	line-height: 1.2;
	background-image: linear-gradient(to top, rgba(104,4,22,.8), rgba(183,19,34,.8));
	-webkit-box-shadow: 0 7px 0 #e53b4e;
	box-shadow: 0 3px 0 #e53b4e;
	}

a.btn-circle:before {
	content: '';
	position: absolute;
	bottom: 1.2rem;
	left: 45%;
	right: 50%;
	transform: translateY(-50%) rotate(45deg);
	width: 10px;
	height: 10px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transition: .3s;
	}
a.btn-circle:after {
	content: '';
	position: absolute;
	left: 45%;
	right: 50%;
	bottom: calc(1.2rem + 8px);
	transform: translateY(-50%) rotate(45deg);
	width: 10px;
	height: 10px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transition: .3s;
	}

a.btn-circle:hover {
	-webkit-transform: translate(0, 4px);
	transform: translate(0, 4px);
	color: #fff;
	-webkit-box-shadow: 0 3px 0 #e53b4e;
	box-shadow: 0 3px 0 #e53b4e;
	}

a.btn-circle .material-symbols-outlined {
	font-size: 4rem;
	}

CLOSE


TOP