cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div class='wrapper'>
  <div class='title'>
      <h1>Pure CSS button Effects</h1>
    </div>
  <div class='layout'>
  <div class='col'>
  <div class='container'>
    <div class='one'>
      <div class='elong'>
        <div class='first'>
      <a href='#'>Style 1</a>
          </div>
        <div class='second'>
      <a class='secondary' href='#'>Click</a>
        </div>
      </div>
    </div>
    <div class='two'>
      <div class='elong'>
        <div class='first'>
      <a href='#'>Style 2</a>
          </div>
        <div class='second'>
      <a class='secondary' href='#'>Click</a>
        </div>
      </div>
    </div>
    <div class='three'>
      <div class='elong'>
        <div class='first'>
      <a href='#'>Click</a>
          </div>
        <div class='second'>
      <a class='secondary' href='#'>Style 3</a>
        </div>
      </div>
    </div>
    <div class='four'>
      <div class='elong'>
        <div class='first'>
      <a href='#'>Click</a>
          </div>
        <div class='second'>
      <a class='secondary' href='#'>Style 4</a>
        </div>
      </div>
    </div>
  </div>
  </div>
  <div class='col'>
  <div class='container'>
    <div class='five'>
      <div class='elong'>
        <div class='first'>
      <a href='#'>Click</a>
          </div>
        <div class='second'>
      <a class='secondary' href='#'>Style 5</a>
        </div>
      </div>
    </div>
    <div class='six'>
      <div class='elong'>
        <div class='first'>
      <a href='#'>Click</a>
          </div>
        <div class='second'>
      <a class='secondary' href='#'>Style 6</a>
        </div>
      </div>
    </div>
    <div class='seven'>
      <div class='elong'>
        <div class='first'>
      <a href='#'>Style 7</a>
          </div>
        <div class='second'>
      <a class='secondary' href='#'>Click</a>
        </div>
      </div>
    </div>
    <div class='eight'>
      <div class='elong'>
        <div class='first'>
      <a href='#'>Style 8</a>
          </div>
        <div class='second'>
      <a class='secondary' href='#'>Click</a>
        </div>
      </div>
    </div>
  </div>
  </div>
  <div class='col'>
  <div class='container'>
    <div class='nine'>
      <div class='elong'>
        <div class='first'>
      <a href='#'>Style 9</a>
          </div>
        <div class='second'>
      <a class='secondary' href='#'>Click</a>
        </div>
      </div>
    </div>
    <div class='ten'>
      <div class='elong'>
        <div class='first'>
      <a href='#'>Style 10</a>
          </div>
        <div class='second'>
      <a class='secondary' href='#'>Click</a>
        </div>
      </div>
    </div>
    <div class='eleven'>
      <div class='elong'>
        <div class='second'>
      <a href='#'>Click</a>
          </div>
        <div class='first'>
      <a  href='#'>Style 11</a>
        </div>
      </div>
    </div>
    <div class='twelve'>
      <div class='elong'>
        <div class='second'>
      <a href='#'>Click</a>
          </div>
        <div class='first'>
      <a class='secondary' href='#'>Style 12</a>
        </div>
      </div>
    </div>
  </div>
  </div>
    <div class='col'>
  <div class='container'>
    <div class='thirteen'>
      <div class='elong'>
        <div class='first'>
      <a href='#'>Style 13</a>
          </div>
        <div class='second'>
      <a class='secondary' href='#'>Click</a>
        </div>
      </div>
    </div>
    <div class='fourteen'>
      <div class='elong'>
        <div class='first'>
      <a href='#'>Style 14</a>
          </div>
        <div class='second'>
      <a class='secondary' href='#'>Click</a>
        </div>
      </div>
    </div>
    <div class='fifteen'>
      <div class='elong'>
        <div class='first'>
      <a href='#'>Style 15</a>
          </div>
        <div class='second'>
      <a class='secondary' href='#'>Click</a>
        </div>
      </div>
    </div>
    <div class='sixteen'>
      <div class='elong'>
        <div class='first'>
      <a href='#'>Style 16</a>
          </div>
        <div class='second'>
      <a class='secondary' href='#'>Click</a>
        </div>
      </div>
    </div>
  </div>
  </div>
    <h3>I'm Proud of 15 and 16</h3>
    <h2>By Overly Engineered</h2>
  </div>
</div>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Kaushan+Script);
*{margin:0; padding:0; border:0; outline:0;}
h1, h2, h3{font-family: 'Kaushan Script', cursive; text-align:center;}
h1{font-size:60px;}
h2{font-size:30px;}
h3{font-size:15px;}
.title{border-bottom:5px solid black;}
$buttonheight: 50px;
body{background-color:#F7977A; font-family:Tahoma, Geneva, sans-serif;}
.wrapper{width:100%;}
.layout{width:1200px; margin:5px auto;}
.col{width:300px; float:left; display:block;}
@media(min-width:400px){
  .layout{width:390px; margin:5px auto;}
  .col{margin:auto; float:none;}
}
@media(min-width:620px){
  .layout{width:600px; margin:5px auto;}
  .col{margin:auto; float:left;}
}
@media(min-width:1000px){
  .layout{width:900px; margin:5px auto;}
}
@media(min-width:1250px){
  .layout{width:1200px; margin:5px auto;}
}

.container{width:200px; margin:10px auto;}
.button{width:200px; height:$buttonheight; text-align:center; margin-bottom:10px; border:4px solid white; border-radius:10px; color:white; font-size:20px;
    a{color:white; text-decoration:none; line-height:$buttonheight; width:100%; height:100%;  display:block;}
  overflow:hidden; position:relative;
  .first, .second{width:200px; display:inline-block; float:left;}
}
.one, .two, .three, .four, .five, .six, .seven, .eight, .nine, .ten, .eleven, .twelve, .thirteen, .fourteen, .fifteen, .sixteen{
  @extend .button;
  transition:all 0.5s;
}
.one, .two, .three, .four{
  @extend .style1;
}
.five, .six, .seven, .eight{
  @extend .style2;
}
 .nine, .ten, .eleven, .twelve{
   @extend .style3;
 }
.style1{
    background:linear-gradient(to left, #F7977A 200px, #3BB878 200px);
  background-size:400px 50px;
  background-repeat:no-repeat;
  .elong{ position:relative; transition:all 0.5s;}
}
.style2{
  .elong{position:relative;  transition:all 0.5s;
  .second{position:relative;}}
}
.style3{
  background-size:800px 200px;
  .second{
  a{
    color:#3BB878;
    letter-spacing:2px;
  }}
  .elong{transition:all 0.5s;position:relative;}
}
.grad1{background:linear-gradient(to bottom right,#3BB878  150px, #F7977A 150px);}
.grad2{background:linear-gradient(to bottom left,#3BB878  150px, #F7977A 150px);}
.grad3{background:linear-gradient(to top right,#3BB878  150px, #F7977A 150px);}
.grad4{background:linear-gradient(to top left,#3BB878  150px, #F7977A 150px);}
.grad1, .grad2, .grad3, .grad4{background-size:300px 200px;
  background-repeat:no-repeat;}
.grad5{background:repeating-linear-gradient(to bottom right, #F7977A, #F7977A 20px, #3BB878 20px, #3BB878 40px);}
.grad6{background:repeating-linear-gradient(to bottom left, #F7977A, #F7977A 20px, #3BB878 20px, #3BB878 40px);}
.grad7{background:repeating-linear-gradient(to bottom right, #F7977A, #F7977A 20px, #3BB878 20px, #3BB878 40px);}
.grad8{background:repeating-linear-gradient(to bottom left, #F7977A, #F7977A 20px, #3BB878 20px, #3BB878 40px);}
.one{
  background-position:200px 0px;
  .elong{width:400px; left:0px;} 
}
.two{
  background-position:0px $buttonheight;
  .elong{width:200px; top:0px;} 
}
.three{
  background-position:-200px 0px;
  .elong{width:400px; left:-200px;} 
}
.four{
  background-position:0px -50px ;
  .elong{width:200px; top:-50px;} 
}
.one:hover, .one:focus, .two:hover, .two:focus, .three:hover, .three:focus, .four:hover, .four:focus{background-position:0px 0px;}
.one:hover .elong, .one:focus .elong{left:-200px;}
.two:hover .elong, .two:focus .elong{top:-50px;}
.three:hover .elong, .three:focus .elong{left:0px;}
.four:hover .elong, .four:focus .elong{top:0px;}
.five{
  @extend .grad1;
  background-position:-150px -150px;
  .elong{left:-200px; top:-50px;
  .second{left:200px;}
  }
}
.six{
  @extend .grad2;
  background-position:150px -150px;
  .elong{left:200px; top:-50px;
  .second{left:-200px;}
  }
}
.seven{
  @extend .grad3;
  background-position:-150px 0px;
  .elong{left:0px; top:0px;
  .second{left:-200px;}
  }
}
.eight{
  @extend .grad4;
   background-position:50px 0px;
  .elong{left:0px; top:0px;
  .second{left:200px;}
  }
}
.five:hover, .five:focus{background-position:0px 0px;}
.five:hover .elong, .five:focus .elong{top:0px; left:0px;}
.six:hover, .six:focus{background-position:-100px 0px;}
.six:hover .elong, .six:focus .elong{top:0px; left:0px;}
.seven:hover, seven:focus{background-position:0px -150px;}
.seven:hover .elong, .seven:focus .elong{top:-50px; left:200px;}
.eight:hover, eight:focus{background-position:-100px -150px;}
.eight:hover .elong, .eight:focus .elong{top:-50px; left:-200px;}
.nine, .ten, .eleven, .twelve{}
.nine{
  .elong{width:400px; left:0px;}
}
.ten{
  .elong{width:200px; top:0px;}
}
.eleven{
  .elong{width:400px; left:-200px;}
  .secondary{color:white;}
}
.twelve{
  .elong{width:200px; top:-50px;}
}
.nine:hover, nine:focus, .ten:hover, .ten:focus, .eleven:hover, .eleven:focus, .twelve:hover, .twelve:focus{border:4px solid #3BB878;}
.nine:hover .elong, .nine:focus .elong{left:-200px;}
.ten:hover .elong, .ten:focus .elong{top:-50px;}
.eleven:hover .elong, .eleven:focus .elong{left:0px;}
.twelve:hover .elong, .twelve:focus .elong,{top:0px;}
.thirteen{
  .first{opacity:1;}
  .second{position:relative; top:-50px; opacity:0;}
}
.thirteen:hover, thirteen:focus{transform:rotate(3deg);}
.thirteen:hover .first, thirteen:focus .first{opacity:0;}
.thirteen:hover .second, thirteen:focus .second{opacity:1;}
.fourteen{
  .first{opacity:1;}
  .second{position:relative; top:-50px; opacity:0;}
}
.fourteen:hover, fourteen:focus{transform:rotate(-3deg);}
.fourteen:hover .first, fourteen:focus .first{opacity:0;}
.fourteen:hover .second, fourteen:focus .second{opacity:1;}
.fifteen{
  .elong{width:400px;}
  .first, .second{transition:all 0.5s linear;}
  .first{position:relative; left:0px;}
  .second{transform:rotateY(90deg); position:relative; left:-100px;  top:0px;
    a{
    color:#3BB878;
    letter-spacing:2px;
    }}
}
.fifteen:hover{
  .first{transform:rotateY(90deg); left:-100px;transform-style: preserve-3d;}
  .second{transform:rotateY(0deg); left:-200px;transform-style: preserve-3d;}
}
.sixteen{
  .first, .second{transition:all 0.5s linear;}
  .first{position:relative; top:0px;}
  .second{transform:rotateX(90deg); position:relative; top:-30px;
    a{
    color:#3BB878;
    letter-spacing:2px;
    }}
}
.sixteen:hover{
  .first{transform:rotateX(90deg);top:-20px;transform-style: preserve-3d;}
  .second{transform:rotateX(0deg); top:-50px; transform-style: preserve-3d;}
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console