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