본문 바로가기

티스토리 | CSS 링크 버튼 서식 모음 #2

by Galam. 2023. 10. 18.
728x90

티스토리 링크 버튼

목차

    '티스토리 링크 버튼' CSS 서식 모음 #2

     

    티스토리 링크 버튼의 CSS와 HTMl 코드 모음입니다.

    티스토리 스킨 편집에 들어가 CSS 코드를 CSS 코드란에 삽입 후 HTML코드를 원하는 위에 넣어주거나 서식으로 만들어 사용하시면 됩니다.

     

     

    티스토리 링크 버튼의 CSS 코드 삽입 및 HTML 서식 만들기는 아래 링크를 참조하시기 바랍니다.

     

     

    티스토리 | CSS 링크 버튼 만들기 #1

    티스토리 I CSS 링크 버튼 만들기 CSS 버튼 위의 CSS버튼의 소스 코드입니다. 티스토리 스킨 편집에 들어가 아래 코드를 CSS 코드란에 삽입 후 HTML코드를 서식으로 만들어 사용하시면 됩니다. 목차 CS

    galam.tistory.com

     

    CSS 버튼 적용 확인법

    아래 코드들을 적용하며 글 작성 시 대부분의 CSS와 마찬가지로 아래 그림처럼 버튼이 적용된 모습이 아닌 기본 버튼 코드의 모습만 보입니다. 이때 하단의 미리보기 버튼을 이용해 버튼의 잘 적용됐는지 확인할 수 있습니다.

    단 미리보기에서는 버튼의 스타일만 보이며 액션은 적용되지 않습니다.

     

    티스토리 링크 버튼
    △글 작성 시

     

    티스토리 링크 버튼
    △미리보기 적용 시

     

    티스토리 링크 버튼 CSS 코드 모음

     

    링크 버튼 1

     

     

    서식 HTML

    <div><button class="click-me-button1"><a href="#">링크 버튼 1</a></button></div>

     

    CSS 코드

    /* CSS 버튼1 */
    button.click-me-button1 {
        padding: 5px;
        font-size: 18px;
        box-sizing: border-box;
        z-index: 5;
        position: relative;
        margin: 5px 0;
        width: 100%;
        height: 40px;
        z-index: 10;
        background-color: transparent;
        border: none;
        cursor: pointer;
    }
    
    button.click-me-button1::before {
        content: "›";
        font-weight: normal;
        position: absolute;
        top: 50%;
        left: 16px;
        font-size: 1em;
        color: #fff;
        transition: all 0.3s;
        z-index: 20;
        transform: translateY(-60%);
    }
    
    button.click-me-button1::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40px;
        height: 40px;
        border-radius: 20px;
        background-color: #555;
        transition: all 0.3s;
        z-index: 15;
    }
    
    button.click-me-button1:hover::before {
        left: calc(100% - 25px);
        opacity: 0;
    }
    
    button.click-me-button1:hover::after {
        width: 100%;
        background-color: #FF0000;
    }
    
    button.click-me-button1 > a {
        position: relative;
        display: block;
        padding: 0 45px;
        height: 100%;
        line-height: 40px;
        color: #222;
        box-sizing: border-box;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        transition: all 0.3s;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-decoration: none;
    }
    
    button.click-me-button1:hover > a {
    	  text-decoration:none;
        font-weight: bold;
        color: #fff;
    }
    /* CSS 버튼1 끝 */

     

    링크버튼 1-1

     

     

    서식 HTML

    <div><button class="click-me-button1-1"><a href="#">링크 버튼 1-1</a></button></div>

     

    CSS 코드

    /* CSS 버튼1-1 */
    button.click-me-button1-1 {
        padding: 5px;
        font-size: 18px;
        box-sizing: border-box;
        z-index: 5;
        position: relative;
        margin: 5px 0;
        width: 100%;
        height: 40px;
        z-index: 10;
        background-color: transparent;
        border: none;
        cursor: pointer;
    }
    
    button.click-me-button1-1::before {
        content: "›";
        position: absolute;
        top: 50%;
        left: 15px;
        font-size: 16px;
    	  font-weight: bold;
        color: #FFf;
        transition: all 0.3s;
        z-index: 20;
        transform: translateY(-60%);
    }
    
    button.click-me-button1-1::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40px;
        height: 40px;
        border-radius: 20px;
        background-color: #555;
        transition: all 0.3s;
        z-index: 15;
    }
    
    button.click-me-button1-1:hover::before {
        left: calc(100% - 25px);
        opacity: 0;
    }
    
    button.click-me-button1-1:hover::after {
        width: 100%;
        background-image: linear-gradient(-225deg, #FF0000 0%, #f9d423 100%); /* 그라데이션 색상 */
    }
    
    button.click-me-button1-1 > a {
        position: relative;
        display: block;
        padding: 0 45px;
        height: 100%;
        line-height: 40px;
        color: #222;
        box-sizing: border-box;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        transition: all 0.3s;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-decoration: none;
    }
    
    button.click-me-button1-1:hover > a {
    	  text-decoration:none;
        font-weight: bold;
        color: #fff;
    }
    /* CSS 버튼1-1 끝 */

     

     

    링크 버튼  2

     

     

    서식 HTML

    <div><center><a href="#"><button class="learn-more">링크 버튼 2</button></a></center></div>

     

    CSS 코드

    /* CSS 버튼2 */
    button.learn-more:hover::before {
        transform: translate3d(0, 0, -1em); /* Move to the original position */
    }
    button.learn-more:hover {
        transform: translate3d(0, 0.75em, 0); /* Move the button downwards on hover */
    }
    button.learn-more::before {
        position: absolute;
        content: "";
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #f9c4d2;
        border-radius: inherit;
        box-shadow: 0 0 0 2px #b18597;
        transform: translate3d(0, 0.75em, -1em);
        transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), box-shadow 150ms cubic-bezier(0, 0, 0.58, 1);
    }
    button.learn-more {
        font-weight: 600;
        color: #382b22;
        text-transform: uppercase;
        padding: 1.25em 2em;
        background: #fff0f0;
        border: 2px solid #b18597;
        border-radius: 0.75em;
        transform-style: preserve-3d;
        transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), background 150ms cubic-bezier(0, 0, 0.58, 1);
    }
    button {
        position: relative;
        display: inline-block;
        cursor: pointer;
        outline: none;
        border: 0;
        vertical-align: middle;
        text-decoration: none;
        font-size: inherit;
        font-family: inherit;
    }
    /* CSS 버튼2 끝 */

     

    링크 버튼  3

     

     

    서식 HTML

    <div><center><a href="#"><button class="click-me-button3">링크 버튼 3</button></a></center></div>

     

    CSS 코드

    /* CSS 버튼3 */
    @keyframes gradient {
      0% {
        background: radial-gradient(circle at center, rgba( 255, 125 , 125, 0 ) 0%, #fff 0%, #fff 100%);
      }
      25% {
        background: radial-gradient(circle at center, rgba( 255, 125, 125, 0.3 ) 24%, #fff 25%, #fff 100%);
      }
      50% {
        background: radial-gradient(circle at center, rgba( 255, 125, 125, 0.5 ) 49%, #fff 50%, #fff 100%);
      }
      75% {
        background: radial-gradient(circle at center, rgba( 255, 125, 125, 0.8 ) 74%, #fff 75%, #fff 100%);
      }
      100% {
        color: #fff;
        background: radial-gradient(circle at center, #f88 99%, #fff 100%, #fff 100%);
      }
    }
    
    button.click-me-button3 {
      width: 350px;
      height: 60px;
      border: 1px solid #000; /* 검은색 테두리를 추가 */
      border-radius: 5px;
      background: #fff;
      font-weight: bold;
      font-size: 1.1em;
      color: #666;
      box-shadow: 0 6px 6px #000; /* box-shadow 색상을 검은색으로 변경 */
      outline: none;
    }
    
    button.click-me-button3:hover {
      /* set time duration to your needs */
      animation: gradient 100ms;
      background: #f88;
      color: #fff;
      box-shadow: none;
    }
    /* CSS 버튼3 끝 */
    728x90

     

    버튼 4 ~ 16 참고사항   

    아래 버튼 4~9번10~16번 버튼까지는 CSS 공통 코드를 아래 예제처럼 한 번만 넣어주고 이후 버튼 CSS 스타일 코드를 넣어 주어야 합니다.

    티스토리 링크 버튼
    CSS 공통코드

     

    티스토리 링크 버튼
    버튼 코드


    링크 버튼  4~9번 CSS 공통 코드

    4~9번 버튼을 여러 가지 적용 시 CSS 공통 코드는 한 번만 넣어주세요

    /* btn-hover.color 공통 CSS 시작 */ 
    * {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }
     
    .buttons {
        margin: 10%;
        text-align: center;
    }
     
    .btn-hover {
        padding: 0px 40px 0px 40px; /* 버튼 내부 여백 */
        font-size: 16px; /* 폰트 크기 */
        font-weight: 600; /* 폰트 굵기 */
        color: #fff !important; /* 글꼴 색상 */
        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;
    }
     
    .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;
    }
     
    .btn-hover:focus {
        outline: none;
    }
    /* btn-hover.color 공통 CSS 끝 */

     

    링크 버튼 4

     

     

    서식 HTML

    <div><center><a href="#"><button class="btn-hover color-1">링크 버튼4</button></a></center></div>

     

    CSS 스타일 코드

    /* CSS 버튼4 */
    .btn-hover.color-1 {
        background-image: linear-gradient(to right, #25aae1, #40e495, #30dd8a, #2bb673);
        box-shadow: 0 4px 15px 0 rgba(49, 196, 190, 0.75);
    }
    /* CSS 버튼4 끝 */

     

    링크 버튼  5

     

     

    서식 HTML

    <div><center><a href="#"><button class="btn-hover color-5">링크 버튼5</button></a></center></div>

     

    CSS 스타일 코드

    /* CSS 버튼5 */
    .btn-hover.color-5 {
        background-image: linear-gradient(to right, #f5ce62, #e43603, #fa7199, #e85a19);
        box-shadow: 0 4px 15px 0 rgba(229, 66, 10, 0.75);
    }
    /* CSS 버튼5 끝 */

     

    링크 버튼  6

     

     

    서식 HTML

    <div><center><a href="#"><button class="btn-hover color-6">링크 버튼6</button></a></center></div>

     

    CSS 스타일 코드

    /* CSS 버튼6 */
    .btn-hover.color-6 {
        background-image: linear-gradient(to right, #667eea, #764ba2, #6B8DD6, #8E37D7);
        box-shadow: 0 4px 15px 0 rgba(116, 79, 168, 0.75);
    }
    /* CSS 버튼6 끝 */

     

    링크 버튼  7

     

     

    서식, HTML

    <div><center><a href="#"><button class="btn-hover color-7">링크 버튼7</button></a></center></div>

     

    CSS 스타일 코드

    /* CSS 버튼7 */
    .btn-hover.color-7 {
        background-image: linear-gradient(to right, #009245, #FCEE21, #00A8C5, #D9E021);
        box-shadow: 0 4px 15px 0 rgba(83, 176, 57, 0.75);
    }
    /* CSS 버튼7 끝 */

     

    링크 버튼  8

     

     

    서식, HTML

    <div><center><a href="#"><button class="btn-hover color-8">링크 버튼8</button></a></center></div>

     

    CSS 스타일 코드

    /* CSS 버튼8 */
    .btn-hover.color-8 {
        background-image: linear-gradient(to right, #6253e1, #852D91, #A3A1FF, #F24645);
        box-shadow: 0 4px 15px 0 rgba(126, 52, 161, 0.75);
    }
    /* CSS 버튼8 끝 */

     

    링크 버튼  9

     

     

    서식, HTML

    <div><center><a href="#"><button class="btn-hover color-9">링크 버튼 9</button></a></center></div>

     

    CSS 스타일 코드

    /* CSS 버튼9 */
    .btn-hover.color-9 {
        background-image: linear-gradient(to right, #ff00ff, #4481eb, #04befe, #3f86ed);
        box-shadow: 0 4px 15px 0 rgba(65, 132, 234, 0.75);
    }
    /* CSS 버튼9 끝 */

    링크 버튼 10~16번 CSS 공통 코드

    10~16번 버튼을 여러 가지 적용 시 CSS 공통 코드는 한 번만 넣어주세요

    /* btn 공통 CSS 시작 */
    .custom-btn {
      padding: 0px 40px 0px 40px; /* 버튼 내부 여백 */
      /* width: 200px; 버튼 가로 크기 고정 */
      height: 55px; /* 버튼 세로 크기 */
      border-radius: 5px;
      font-size:16px; /* 폰트 크기 */
      font-weight: 600; /* 폰트 굵기 */
      color: #fff !important; /* 글꼴 색상 */
      background: transparent;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
      display: inline-block;
       box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
       7px 7px 20px 0px rgba(0,0,0,.1),
       4px 4px 5px 0px rgba(0,0,0,.1);
      outline: none;
    }
    /* btn 공통 CSS 끝 */

     

     

    링크 버튼 10

     

     

    서식, HTML

    <div><center><a href="#"><button class="custom-btn btn-10">링크 버튼 10</button></a></center></div>

     

     

    CSS 스타일 코드

    /* CSS 버튼10 */
    .btn-10 {
      border: none;
      background: rgb(251,33,117);
        background: linear-gradient(0deg, rgba(251,33,117,1) 0%, rgba(234,76,137,1) 100%);
        color: #fff;
        overflow: hidden;
    }
    .btn-10:hover {
        text-decoration: none;
        color: #fff;
    }
    .btn-10:before {
        position: absolute;
        content: '';
        display: inline-block;
        top: -180px;
        left: 0;
        width: 30px;
        height: 100%;
        background-color: #fff;
        animation: shiny-btn1 3s ease-in-out infinite;
    }
    .btn-10:hover{
      opacity: .7;
    }
    .btn-10:active{
      box-shadow:  4px 4px 6px 0 rgba(255,255,255,.3),
                  -4px -4px 6px 0 rgba(116, 125, 136, .2), 
        inset -4px -4px 6px 0 rgba(255,255,255,.2),
        inset 4px 4px 6px 0 rgba(0, 0, 0, .2);
    }
    
    @-webkit-keyframes shiny-btn1 {
        0% { -webkit-transform: scale(0) rotate(45deg); opacity: 0; }
        80% { -webkit-transform: scale(0) rotate(45deg); opacity: 0.5; }
        81% { -webkit-transform: scale(4) rotate(45deg); opacity: 1; }
        100% { -webkit-transform: scale(50) rotate(45deg); opacity: 0; }
    }
    /* CSS 버튼10 끝 */

     

    링크 버튼 11

     

     

    서식, HTML

    <div><center><a href="#"><button class="custom-btn btn-11">링크 버튼 11</button></a></center></div>

     

    CSS 스타일 코드

    /* CSS 버튼11 */
    .btn-11 {
      width: 200px;
      height: 55px;
      line-height: 42px;
      padding: 0;
      border: none;
      background: rgb(255,27,0);
      background: linear-gradient(0deg, rgba(255,27,0,1) 0%, rgba(251,75,2,1) 100%);
    }
    
    .btn-11:hover {
      color: #f0094a;
      background: transparent;
      box-shadow:none;
    }
    .btn-11:before,
    .btn-11:after{
      content:'';
      position:absolute;
      top:0;
      right:0;
      height:2px;
      width:0;
      background: #f0094a;
      box-shadow:
       -1px -1px 5px 0px #fff,
       7px 7px 20px 0px #0003,
       4px 4px 5px 0px #0002;
      transition:400ms ease all;
    }
    .btn-11:after{
      right:inherit;
      top:inherit;
      left:0;
      bottom:0;
    }
    .btn-11:hover:before,
    .btn-11:hover:after{
      width:100%;
      transition:800ms ease all;
    }
    /* CSS 버튼11 끝 */

     

    링크 버튼 12

     

     

    서식, HTML

    <div><center><a href="#"><button class="custom-btn btn-12">링크 버튼 12</button></a></center></div>

     

    CSS 스타일 코드

    /* CSS 버튼12 */
    .btn-12 {
      border: none;
      transition: all 0.3s ease;
      overflow: hidden;
    }
    .btn-12:after {
      position: absolute;
      content: " ";
      z-index: -1;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: #1fd1f9;
      background-image: linear-gradient(315deg, #1fd1f9 0%, #b621fe 74%);
      transition: all 0.3s ease;
    }
    .btn-12:hover {
      background: transparent;
      box-shadow:  4px 4px 6px 0 rgba(255,255,255,.5),
                  -4px -4px 6px 0 rgba(116, 125, 136, .2), 
      inset -4px -4px 6px 0 rgba(255,255,255,.5),
      inset 4px 4px 6px 0 rgba(116, 125, 136, .3);
      color: #fff;
    }
    .btn-12:hover:after {
      -webkit-transform: scale(2) rotate(180deg);
      transform: scale(2) rotate(180deg);
      box-shadow:  4px 4px 6px 0 rgba(255,255,255,.5),
                  -4px -4px 6px 0 rgba(116, 125, 136, .2), 
        inset -4px -4px 6px 0 rgba(255,255,255,.5),
        inset 4px 4px 6px 0 rgba(116, 125, 136, .3);
    }
    /* CSS 버튼12 끝 */

     

    링크 버튼 13

     

     

    서식, HTML

    <div><center><a href="#"><button class="custom-btn btn-12">링크 버튼 13</button></a></center></div>

     

    CSS 스타일 코드

    /* CSS 버튼13 */
    .btn-13 {
      background: rgb(22,9,240);
      background: linear-gradient(0deg, rgba(22,9,240,1) 0%, rgba(49,110,244,1) 100%);
      color: #fff;
      border: none;
      transition: all 0.3s ease;
      overflow: hidden;
    }
    .btn-13:after {
      position: absolute;
      content: " ";
      top: 0;
      left: 0;
      z-index: -1;
      width: 100%;
      height: 100%;
      transition: all 0.3s ease;
      -webkit-transform: scale(.1);
      transform: scale(.1);
    }
    .btn-13:hover {
      color: #fff;
      border: none;
      background: transparent;
    }
    .btn-13:hover:after {
      background: rgb(0,3,255);
      background: linear-gradient(0deg, rgba(2,126,251,1) 0%,  rgba(0,3,255,1)100%);
      -webkit-transform: scale(1);
      transform: scale(1);
    }
    /* CSS 버튼13 끝 */

     

    링크 버튼 14

     

     

    서식, HTML

    <div><center><a href="#"><button class="custom-btn btn-14"><span>링크 버튼 14</span><span>Click!</span></button></a></center></div>

     

    CSS 스타일 코드

    /* CSS 버튼14 */
    .btn-14{
      position: relative;
      right: 20px;
      bottom: 20px;
      border:none;
      box-shadow: none;
      width: 200px;
      height: 55px;
      line-height: 55px;
      -webkit-perspective: 230px;
      perspective: 230px;
    }
    
    .btn-14 span {
      background: rgb(0,172,238);
      background: linear-gradient(0deg, rgba(0,172,238,1) 0%, rgba(2,126,251,1) 100%);
      display: block;
      position: absolute;
      width: 200px;
      height: 55px;
      box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
       7px 7px 20px 0px rgba(0,0,0,.1),
       4px 4px 5px 0px rgba(0,0,0,.1);
      border-radius: 5px;
      margin:0;
      text-align: center;
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
      -webkit-transition: all .3s;
      transition: all .3s;
    }
    
    .btn-14 span:nth-child(1) {
      box-shadow:
       -7px -7px 20px 0px #fff9,
       -4px -4px 5px 0px #fff9,
       7px 7px 20px 0px #0002,
       4px 4px 5px 0px #0001;
      -webkit-transform: rotateX(90deg);
      -moz-transform: rotateX(90deg);
      transform: rotateX(90deg);
      -webkit-transform-origin: 50% 50% -20px;
      -moz-transform-origin: 50% 50% -20px;
      transform-origin: 50% 50% -20px;
    }
    
    .btn-14 span:nth-child(2) {
      -webkit-transform: rotateX(0deg);
      -moz-transform: rotateX(0deg);
      transform: rotateX(0deg);
      -webkit-transform-origin: 50% 50% -20px;
      -moz-transform-origin: 50% 50% -20px;
      transform-origin: 50% 50% -20px;
    }
    
    .btn-14:hover span:nth-child(1) {
      box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
       7px 7px 20px 0px rgba(0,0,0,.1),
       4px 4px 5px 0px rgba(0,0,0,.1);
      -webkit-transform: rotateX(0deg);
      -moz-transform: rotateX(0deg);
      transform: rotateX(0deg);
    }
    
    .btn-14:hover span:nth-child(2) {
      box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
       7px 7px 20px 0px rgba(0,0,0,.1),
       4px 4px 5px 0px rgba(0,0,0,.1);
     color: transparent;
      -webkit-transform: rotateX(-90deg);
      -moz-transform: rotateX(-90deg);
      transform: rotateX(-90deg);
    }
    /* CSS 버튼14 끝 */

     

    링크 버튼 15

     

     

    서식, HTML

    <div><center><a href="#"><button class="custom-btn btn-12">링크 버튼 15</button></a></center></div>

     

    CSS 스타일 코드

    /* CSS 버튼15 */
    .btn-15 {
      background: #b621fe;
      border: none;
      z-index: 1;
    }
    .btn-15:after {
      position: absolute;
      content: "";
      width: 0;
      height: 100%;
      top: 0;
      right: 0;
      z-index: -1;
      background-color: #663dff;
      border-radius: 5px;
      box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
       7px 7px 20px 0px rgba(0,0,0,.1),
       4px 4px 5px 0px rgba(0,0,0,.1);
      transition: all 0.3s ease;
    }
    .btn-15:hover {
      color: #fff;
    }
    .btn-15:hover:after {
      left: 0;
      width: 100%;
    }
    .btn-15:active {
      top: 2px;
    }
    /* CSS 버튼15 끝 */

     

    링크 버튼 16

     

     

    서식, HTML

    <div><center><a href="#"><button class="custom-btn btn-16">링크 버튼 16</button></a></center></div>

     

    CSS 스타일 코드

    /* CSS 버튼16 */
    .btn-16 {
      background: rgb(255,151,0);
      border: none;
      z-index: 1;
    }
    .btn-16:after {
      position: absolute;
      content: "";
      width: 100%;
      height: 0;
      top: 0;
      left: 0;
      z-index: -1;
      border-radius: 5px;
      background-color: #eaf818;
      background-image: linear-gradient(315deg, #eaf818 0%, #f6fc9c 74%);
       box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5);
       7px 7px 20px 0px rgba(0,0,0,.1),
       4px 4px 5px 0px rgba(0,0,0,.1);
      transition: all 0.3s ease;
    }
    .btn-16:hover {
      color: #000;
    }
    .btn-16:hover:after {
      top: auto;
      bottom: 0;
      height: 100%;
    }
    .btn-16:active {
      top: 2px;
    }
    /* CSS 버튼16 끝 */
    728x90

     

    링크 버튼 17

     

     

    서식, HTML

    <div><a href="#"><button class="btn-16">링크 버튼 17</button></a></div>

     

    CSS코드

    /* CSS 버튼17 */
    .btn16{
        text-align: center;
        cursor: pointer;
        overflow: hidden;
        position: relative;
        margin: auto;
        margin-top: 10px;
        width: 100%;
        height: 55px;
        box-sizing: border-box;
        text-shadow: 0 1px 2px rgb(0 0 0 / 25%);
        background: #76e397;
        border: 0;
        -webkit-box-shadow: inset 0 -3px #25c054;
        box-shadow: inset 0 -3px #25c054;
        border-radius: 10px;
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        margin-bottom: 10px;
        font-size: 15px;
        color: rgba(255, 255, 255, 1.0);
        transform: scale(90%);
        transition: .3s cubic-bezier(0.075, 0.82, 0.165, 1);
    }
    
    .btn16{
        text-align: center;
        cursor: pointer;
        overflow: hidden;
        position: relative;
        margin: auto;
        margin-top: 10px;
        left: 40%;
        width: 20%;
        height: 55px;
        box-sizing: border-box;
        text-shadow: 0 1px 2px rgb(0 0 0 / 25%);
        background: #76e397;
        border: 0;
        -webkit-box-shadow: inset 0 -3px #25c054;
        box-shadow: inset 0 -3px #25c054;
        border-radius: 10px;
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        margin-bottom: 10px;
        font-size: 15px;
        color: rgba(255, 255, 255, 1.0);
        transform: scale(90%);
        transition: .3s cubic-bezier(0.075, 0.82, 0.165, 1);
    }
    
    .btn16:hover {
        transform: scale(95%);
        transition: .3s cubic-bezier(0.075, 0.82, 0.165, 1);
    }
    
    .btn16:active {
        transform: scale(90%);
        transition: .3s cubic-bezier(0.075, 0.82, 0.165, 1);
    }
    /* CSS 버튼17 끝 */

     

    링크 버튼  18

     

     

    서식 HTML

    <div><center><a href="#"><button class="click-me-button17">링크 버튼 18</button></a></center></div>

     

    CSS 코드

    /* CSS 버튼18 */
    button.click-me-button17 {
                --b: 3px;
                --s: .45em;
                --color: #373B44;
                padding: calc(.5em + var(--s)) calc(.9em + var(--s));
                color: var(--color);
                --_p: var(--s);
                background: conic-gradient(from 90deg at var(--b) var(--b), #0000 90deg, var(--color) 0) var(--_p) var(--_p)/calc(100% - var(--b) - 2*var(--_p)) calc(100% - var(--b) - 2*var(--_p));
                transition: .3s linear, color 0s, background-color 0s;
                outline: var(--b) solid #0000;
                outline-offset: .6em;
                font-size: 16px;
                border: 0;
                user-select: none;
                -webkit-user-select: none
                touch-action: manipulation;
            }
    
      button.click-me-button17:hover {
          --_p: 0px;
          outline-color: black;
          outline-offset: .05em;
      }
    	/* CSS 버튼18 끝 */

     

    링크 버튼  19

     

     

    서식 HTML

    <div><center><a href="#"><button class="click-me-button18">링크 버튼 19</button></a></center></div>

     

    CSS 코드

    /* CSS 버튼19 */
    button.click-me-button18 {
      text-align: center;
      text-transform: uppercase;
      cursor: pointer;
      font-size: 16px; /* 폰트 크기 */
      letter-spacing: 1px; /* 글 가로 간격 */
      position: relative;
      background-color: #16a085;
      border: none;
      color: #fff;
    
      width: 200px; 
    	height: 55px;
      text-align: center;
      transition-duration: 0.4s;
      overflow: hidden;
      box-shadow: 0 5px 15px #193047;
      border-radius: 4px;
    }
    
    button.click-me-button18:hover {
      background: #fff;
      box-shadow: 0px 2px 10px 5px #1abc9c;
      color: #000;
    }
    
    button.click-me-button18:after {
      content: "";
      background: #1abc9c;
      display: block;
      position: absolute;
      padding-top: 300%;
      padding-left: 350%;
      margin-left: -20px !important;
      margin-top: -120%;
      opacity: 0;
      transition: all 0.8s
    }
    
    button.click-me-button18:active:after {
      padding: 0;
      margin: 0;
      opacity: 1;
      transition: 0s
    }
    
    button.click-me-button18:focus { outline:0; }
    /* CSS 버튼19 끝 */

     

    링크 버튼  20

     

     

    서식 HTML

    <div><center><a href="#"><button class="primary">링크 버튼 20</button></a></center></div>

     

    CSS 코드

    /* CSS 버튼20 */
    .buttons {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
        gap: 20px;
    }
    .primary {
        font-size: 20px;
        font-weight: 600;
        padding: 14px 30px;
        border: none;
        border-radius: 30px;
        color: #fff;
        background: #F25D8C;
        transition: 0.2s ease;
    }
    .primary:hover {
        background: #FCCF2B;
        cursor: pointer;
    }
    /* CSS 버튼20 끝 */

     

    링크 버튼 21

     

     

    서식 HTML

    <div><center><a href="#"><button class="btn-right">CSS 버튼21<span class="arrow-right"></span></button></a></center></div>

     

    CSS 코드

    /* CSS 버튼21 */
    .btn-right {
      text-decoration: none;
      position: relative;
      font-weight: 700;
      font-size: 18px;
      letter-spacing: -0.03em;
      color: #fff;
      background-color: rgba(0, 121, 240);
      padding: 0.9em 3em 0.9em 2.25em; /* 버튼 내부 여백 상, 우, 하, 좌 */
      border-radius: 50px; /* 버튼 라운드 크기 */
      box-shadow: 0 2px 5px 0 rgba(71, 71, 71, 0.75);
    }
    
    .btn-right:hover {
      background: #f0094a; /* 마우스 오버 배경색 */
    }
    
    .arrow-right {
      position: absolute;
      display: inline-block;
      width: 0;
      height: 0;
      border-top: 8px solid transparent;
      border-right: 8px solid transparent;
      border-bottom: 8px solid transparent;
      border-left: 8px solid #fff;
      margin-top: 3px;
      margin-left: 8px;
      animation: horizontal 0.7s ease-in-out infinite;
    }
    
    @keyframes horizontal {
      0% {
        margin-left: 9px;
      }
      50% {
        margin-left: 11px;
      }
      100% {
        margin-left: 9px;
      }
    }
    /* CSS 버튼21 끝 */

     

    링크 버튼 22

     

     

    서식 HTML

    <div><center><a href="#"><button class="arrow-button">CSS 버튼 22<span class="arrow"></span></button></a></center></div>

     

    CSS 코드

    /* CSS 버튼22 */
    .arrow-button {
        text-decoration: none;
        display: flex;
        align-items: center;
        background-color: #4CAF50;
        color: #fff;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        font-weight: 700;
        font-size: 18px;
        position: relative;
        box-shadow: 0 2px 5px 0 rgba(71, 71, 71, 0.75);
    }
    
    .arrow {
        width: 0;
        height: 0;
        border-top: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-left: 8px solid #fff;
        margin-left: 8px;
        transition: transform 0.3s ease;
    }
    
    .arrow-button:hover .arrow {
        transform: translateX(10px);
    }
    /* CSS 버튼22 끝 */

     

    Black & White Buttons 16Types

    See the Pen Black & White Buttons 16Types by Galam (@tserxuag-the-styleful) on CodePen.

     

     

    Metal Buttons 16Types

    See the Pen Metal Buttons 16Types by Galam (@tserxuag-the-styleful) on CodePen.


    더 많은 링크 버튼을 원하시면 아래 링크를 이용하세요

    60 CSS 3D 버튼 무료 컬렉션-CSS Pro

     

    60 CSS 3D Buttons Free Collection - CSS Pro

    A collection of the best 3D buttons and skeuomorphic buttons made with pure CSS and HTML. Click to copy, free to use.

    csspro.com

    마감로고

    "쿠팡 파트너스 활동을 통해 일정액의 수수료를 제공받을 수 있습니다"

     

    반응형

    ▸Googie 광고


    loading
    top