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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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="maxcontainer">

  <div class="thebutton progressive">
    <div class="box uxbox">
      <div class="uxbooth-container">
        <div class="uxbooth_container">
          <div class="uxbooth__container uxbooth__category-maroon">
            <a class="uxbooth__category-header">
              Button &#8594
            </a>
            <div class="uxbooth__body">
              Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.
            </div>
          </div>

          <div class="uxbooth__container uxbooth__category-blue">
            <a class="uxbooth__category-header">
              Button &#8594
            </a>
            <div class="uxbooth__body">
              Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.
            </div>
          </div>
          <div class="uxbooth__container uxbooth__category-green">
            <a class="uxbooth__category-header">
              Button &#8594
            </a>
            <div class="uxbooth__body">
              Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.
            </div>
          </div>

          <div class="uxbooth__container uxbooth__category-purple">
            <a class="uxbooth__category-header">
              Button &#8594
            </a>
            <div class="uxbooth__body">
              Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.
            </div>
          </div>

        </div>
      </div>
    </div>
    <div class="desccontainer">
      <a class="desc left" target="_blank" href="http://www.uxbooth.com/">UXBooth</a>
      <a class="desc right" target="_blank" href="http://uibuttons.com">UI Buttons</a>
    </div>
  </div>

  <div class="thebutton info">
    <div class="box-information">
      <h1>UXBooth.com</h1> A smooth and unexpected animation performed by a simple background-position shift.<br>
      <br> You may not notice at first that the body text's background is a transparent white “rgba(255,255,255,.9)” which allows the parent's background gradient to come through. A nice touch.<br>
      <br> That arrow though. →→→→ No SVG, no icon, but <a target="_blank" href="https://www.w3schools.com/charsets/ref_utf_arrows.asp">unicode.</a>☺
    </div>
  </div>

</div>
            
          
!
            
              /*** Button Code ****/

.uxbooth_container {
  max-width: 620px;
  margin: auto;
}

.uxbooth__body {
  padding: 12px 15px 20px 15px;
  font-size: 13px;
  line-height: 20px;
  color: #2a2a2a;
  background: rgba(255, 255, 255, .9);
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  text-align: left;
}

.uxbooth__category-blue {
  text-align: left;
  background-image: -webkit-linear-gradient(left, #0072ff, #0072ff, #00c6ff, #00c6ff);
  background-image: linear-gradient(to right, #0072ff, #0072ff, #00c6ff, #00c6ff);
}

.uxbooth__category-maroon {
  text-align: left;
  background-image: -webkit-linear-gradient(left, #e81135, #e81135, #f29323, #f29323);
  background-image: linear-gradient(to right, #e81135, #e81135, #f29323, #f29323);
}

.uxbooth__category-purple {
  text-align: left;
  background-image: -webkit-linear-gradient(left, #6E48AA, #6E48AA, #9D50BB, #9D50BB);
  background-image: linear-gradient(to right, #6E48AA, #6E48AA, #9D50BB, #9D50BB);
}

.uxbooth__category-green {
  text-align: left;
  background-image: -webkit-linear-gradient(left, #02AAB0, #02AAB0, #00CDAC, #00CDAC);
  background-image: linear-gradient(to right, #02AAB0, #02AAB0, #00CDAC, #00CDAC);
}

.uxbooth__container {
  width: calc(50% - 20px);
  margin: 10px 10px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  background-size: 200%;
  -webkit-transition: 400ms background-position;
  transition: 400ms background-position;
  float: left;
}

.uxbooth__category-header {
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  padding: 12px 15px;
  box-sizing: border-box;
  letter-spacing: 1.5px;
}

.uxbooth__container:hover {
  background-position: 50% 100%;
}

.box.uxbox {
  background: #fff;
}

.uxbooth-container {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 20px;
  right: 0;
  margin: auto;
  text-align: center;
  color: #fff;
  background: #fff;
  width: 120%;
}


/*** Foundation Code ****/

body {
  background-color: rgba(92, 81, 156, 1);
  font-family: "Roboto", sans-serif;
}

a {
  text-decoration: none;
}

.box-information a {
  color: #fff;
  font-weight: bold;
  opacity: .5;
}

a:hover {
  opacity: 1;
}

.maxcontainer {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  overflow: auto;
  background: rgba(93, 82, 157, .95);
}

@media screen and (min-width: 750px) {
  .maxcontainer {
    padding: 0;
  }
}

.thebutton {
  float: left;
  width: 95%;
  margin: 2.5% 2.5% 0 2.5%;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  -webkit-box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.1);
}

@media screen and (min-width: 750px) {
  .thebutton {
    width: 47.5%;
    margin: 2.5% 1.25% 0 1.25%;
  }
}

.box {
  overflow: hidden;
  width: 100%;
  margin: auto;
  height: 0;
  position: relative;
  padding-bottom: 70%;
}

@media screen and (min-width: 650px) {
  .box {}
}

.desccontainer {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 1);
  float: left;
}

.desc {
  float: left;
  font-size: 11px;
  font-weight: 900;
  padding: 10px 0;
  letter-spacing: .25px;
  text-align: center;
  color: #bcbcbc;
  opacity: 1;
  z-index: 2000;
  background: rgba(255, 255, 255, 1);
  transition: all .1s ease-in-out;
  -o-transition: all .1s ease-in-out;
  -moz-transition: all .1s ease-in-out;
  -webkit-transition: all .1s ease-in-out;
}

.desc.left {
  width: 49.7%;
  margin-right: .3%;
  -webkit-box-shadow: 1px 0px 0px 0px rgba(235, 235, 235, 1);
  -moz-box-shadow: 1px 0px 0px 0px rgba(235, 235, 235, 1);
  box-shadow: 1px 0px 0px 0px rgba(235, 235, 235, 1);
}

.desc.right {
  width: 50%;
}

.information {

}

.box-information {
  width: 100%;
  margin: auto;
  position: relative;
  background: none;
  color: #fff;
  font-weight: 200;
}

.thebutton.info {
  -webkit-box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0);
  -moz-box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0);
  box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0);
   overflow: auto;


}
            
          
!
999px
Loading ..................

Console