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.

Quick-add: + add another resource

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.

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 wavebox">
      <div class="wave-button">
        <div class="wave-title">Button</div>
      </div>
      <div class="wave-back">
      </div>
      <div class="wave sea"></div>


    </div>
  </div>

  <div class="thebutton info">
    <div class="boxinformation">
      <h1>Swimming Button</h1>
      <p>Just some fun</p>
      </p>
    </div>

  </div>

</div>
            
          
!
            
              /*** Container ****/
.box.wavebox {
  position: relative;
  background: #fff;
}

/*** Button Code ****/

  .wave-button {
    background-color: #0C2A4C;
    min-width: 300px;
    max-width: 300px;
    padding: 45px 0 ;
    text-align: center;
    margin: 0 auto;
    position: absolute;
    border-radius: 130px;
    transition: all 0.6s cubic-bezier(0.15, 1, 0.33, 1);
    -webkit-transition: all 0.6s cubic-bezier(0.15, 1, 0.33, 1);
    z-index: 100;
    left: 0;
    right: 0;
    top: 30%;
}

.wave-button:after {
  position: absolute;
  content: '';
    background: url(http://nictrent.com/svg.svg) repeat-x; 
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  width: 200%;
  height: 43px;
  animation: wave 3s cubic-bezier( 0.30, 0.45, 0.60, 0.50) infinite;
  transition: all 0.6s cubic-bezier(0.15, 1, 0.33, 1);
  -webkit-transition: all 0.6s cubic-bezier(0.15, 1, 0.33, 1);
  z-index: 200;
}

.wave-button:hover {
  transform: translateY(-30px);
}
.wave-button:hover::after {
  transform: translateY(30px);
}


.wave-title {
      color: #fff;
      font-family: 'Roboto', sans-serif;
      font-size: 47px;
      letter-spacing: 2px;
      font-weight: 300;
      line-height: 1;
}




.wave {
  background: url(http://nictrent.com/svg.svg) repeat-x; 
  position: absolute;
  top: 66%;
  left: 0;
  right: 0;
  width: 200%;
  height: 43px;
  animation: wave 3s cubic-bezier( 0.30, 0.45, 0.60, 0.50) infinite;
  transition: all 0.6s cubic-bezier(0.15, 1, 0.33, 1);
  -webkit-transition: all 0.6s cubic-bezier(0.15, 1, 0.33, 1);
  z-index: 200;
}@media screen and (min-width: 767px) {
.wave {
  top: 63%;
 }
}

@media screen and (min-width: 1200px) {
.wave {
  top: 63%;
 }
}

.wave.sea {
 top: 20%;
  z-index: 1;
}

.wave-back {
  position: absolute;
  top: 25%;
  background-color: #90E5FE;
  height: 100%;
  width: 100%;
  z-index: 1;
 }


@keyframes wave {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 240px;
  }
}

@keyframes wave-reverse {
  0% {
    background-position-x: 240px;
  }
  100% {
    background-position-x: 0;
  }
}





/*** Foundation Code ****/
body {
  background-color: #f4f4f4;
  font-family: "Roboto", sans-serif;
}

a {
  text-decoration: none;
}

.maxcontainer {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  overflow: auto;
  
}

@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 {}
}


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

.boxinformation a {
  color: #000;
  opacity: .4;
  font-weight: bold;
  text-decoration: underline;
}
.boxinformation a:hover {
  opacity: 1;
}


.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);
}
            
          
!
999px
Loading ..................

Console