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="wave">
  <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/168181/about-eco-bg-bottom.jpg">
  <div id="ripples">
  <div class="ripple-1"></div>
  <div class="ripple-2"></div>
  <div class="ripple-3"></div>
  <div class="ripple-4"></div>
  <div class="ripple-5"></div>
  <div class="ripple-6"></div>
  <div class="ripple-7"></div>
  <div class="ripple-8"></div>
  <div class="ripple-9"></div>
  <div class="ripple-10"></div>
  <div class="ripple-11"></div>
  <div class="ripple-12"></div>
  <div class="ripple-13"></div>
  <div class="ripple-14"></div>
  <div class="ripple-15"></div>
  <div class="ripple-16"></div>
  <div class="ripple-17"></div>
  <div class="ripple-18"></div>
  <div class="ripple-19"></div>
  <div class="ripple-20"></div>
$imgurl: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/168181/about-eco-bg-bottom.jpg);
$ripple-speed: 0.8s;
$wave-height: 0.3%;
$wave-start: 57; //top percentage where wave starts, used also to calc portion of image displayed in each ripple div.

.wave {
  position: relative;
  width: 100%;
  background: $imgurl top center no-repeat ;
  overflow: hidden;
  background-position: top left;
  background-size: 100%;
   img {
    width: 100%;  //proportion hack
    opacity: 0;
  #ripples {
    position: absolute;
    z-index: 5;
    width: 100%;
    bottom: 0;
    height: 100%;

div[class^='ripple-'] {
  width: 100%;
  position: absolute;
  z-index: 10;
  left: 0px;
  z-index: 6;
  animation-name: water; 
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  opacity: 0.2;


@for $i from 1 through 20 {
  .ripple-#{$i} {
    height: ($wave-height * $i);
    top: (  $wave-start + ($i * 2) + 1%);
    animation-delay: -1 * (random(10)/5) + s;
    animation-duration: $ripple-speed * ($i/5) + (random(2)/4);
    background: $imgurl top center no-repeat;
    background-size: 100%;
    background-position:0  ( $wave-start + ($i * 2) - 5%);

@keyframes water {
  from { transform: rotateX(0deg); filter: blur(2px); }
  to { transform: rotateX(180deg);  filter: blur(6px);}
Loading ..................