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.

            
              <svg id="Droplet" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
   viewBox="0 -16 286.4 389.9" xml:space="preserve">
  <defs>
   <linearGradient id="Droplet-shadowGradient" fill-opacity="0.25" gradientUnits="userSpaceOnUse" x1="67.4893" y1="359.2395" x2="218.987" y2="359.2395">
     <stop offset="0" style="stop-color:#005DFF;stop-opacity:0.15"/>
     <stop offset="0.4364" style="stop-color:#0068FF;stop-opacity:8.453682e-02"/>
     <stop offset="1" style="stop-color:#0072FF;stop-opacity:0"/>
   </linearGradient>
   <linearGradient id="Droplet-topGradient" gradientUnits="userSpaceOnUse" x1="28.0693" y1="157.3193" x2="258.1405" y2="157.3193">
     <stop offset="0" style="stop-color:#FFFFFF;stop-opacity:0.2"/>
     <stop offset="5.973756e-02" style="stop-color:#FFFFFF;stop-opacity:0.2478"/>
     <stop offset="1" style="stop-color:#FFFFFF"/>
   </linearGradient>
   <linearGradient id="Droplet-lineGradient" gradientUnits="userSpaceOnUse" x1="143.4608" y1="311.1732" x2="143.4608" y2="-9.094947e-13">
     <stop offset="0.2338" style="stop-color:#0072FF"/>
     <stop offset="0.6262" style="stop-color:#00D688"/>
   </linearGradient>
   <linearGradient id="Droplet-bottomGradient" gradientUnits="userSpaceOnUse" x1="143.1049" y1="301.1732" x2="143.1049" y2="83.1643">
     <stop offset="0" style="stop-color:#0072FF;stop-opacity:0.4"/>
     <stop offset="1" style="stop-color:#0072FF;stop-opacity:0"/>
   </linearGradient>
  </defs>
  <style type="text/css">
    .Droplet-shadow{fill:url(#Droplet-shadowGradient);}
    .Droplet-outerDot{fill:#0072FF;}
    .Droplet-line{fill:none;stroke:#0072FF;stroke-width:1.5;stroke-linecap:round;stroke-miterlimit:10;stroke-dasharray:0,5;}
    .Droplet-border{fill:none;stroke:url(#Droplet-lineGradient);stroke-linecap:round;stroke-miterlimit:10;}
    .Droplet-top{fill:url(#Droplet-topGradient);}
    .Droplet-bottom{fill:url(#Droplet-bottomGradient);}
    .Droplet-circle{fill-rule:evenodd;clip-rule:evenodd;fill:#0072FF;}
  </style>
  <g id="Droplet-shadow">
    <ellipse class="Droplet-shadow" cx="143.2" cy="359.2" rx="75.7" ry="14.7"/>
  </g>
  <g id="Droplet-boundingShape">
    <g id="Droplet-backgroundRings">
      <g class="Droplet-background1">
        <path class="Droplet-line" d="M98.7,29.8c7.2-3,24.4-5.1,44.5-5.1c22.6,0,41.5,2.7,46.7,6.3"/>
      </g>
      <g class="Droplet-background2">
        <path class="Droplet-line" d="M50.5,74.6c9.6-8.6,47.5-15,92.7-15c48.5,0,88.6,7.4,94.4,16.9"/>
      </g>
      <g class="Droplet-background3">
        <path class="Droplet-line" d="M11.1,132.8c11-12.2,65.9-21.4,132.1-21.4c69.8,0,127.2,10.3,133.5,23.5"/>
      </g>
      <g class="Droplet-background4">
        <path class="Droplet-line" d="M2.8,201.3c11.6-12.2,70-21.4,140.4-21.4c74.2,0,135.1,10.3,141.8,23.5"/>
      </g>
      <g class="Droplet-background5">
        <path class="Droplet-line" d="M33.7,263.4c10.6-9.3,55.6-16.3,109.5-16.3c57.5,0,104.8,7.9,111.2,18.1"/>
      </g>
    </g>
    <g id="Droplet-shape">
      <path class="Droplet-border" d="M21.7,188.9C21.7,97.7,143.5,0.6,143.5,0.6s121.8,100.2,121.8,188.3c0,67.3-54.5,121.8-121.8,121.8
        S21.7,256.2,21.7,188.9z"/>
      <path class="Droplet-top" d="M28.1,188.7c0-86.2,115-177.9,115-177.9s115,94.7,115,177.9c0,63.5-51.5,115-115,115S28.1,252.3,28.1,188.7z"
        />
      <path class="Droplet-bottom" d="M28.1,188.7c0-86.2,115-177.9,115-177.9s115,94.7,115,177.9c0,63.5-51.5,115-115,115S28.1,252.3,28.1,188.7z"
        />
    </g>
    <g id="Droplet-foregroundRings">
      <g class="Droplet-foreground1">
        <circle class="Droplet-outerDot" cx="191.2" cy="32.9" r=".75" />
        <path class="Droplet-line" d="M187.7,36c-7.2,3-24.4,5.1-44.5,5.1c-22.6,0-41.5-2.7-46.7-6.3"/>
        <circle class="Droplet-outerDot" cx="95.1" cy="32.9" r=".75" />
      </g>
      <g class="Droplet-foreground2">
        <circle class="Droplet-outerDot" cx="238.3" cy="78.8" r=".75"/>
        <path class="Droplet-line" d="M235.9,83.1c-9.6,8.6-47.5,15-92.7,15c-48.5,0-88.6-7.4-94.4-16.9"/>
        <circle class="Droplet-outerDot" cx="48.1" cy="78.8" r=".75"/>
      </g>
      <g class="Droplet-foreground3">
        <circle class="Droplet-outerDot" cx="277.2" cy="137.2" r=".75"/>
        <path class="Droplet-line" d="M275.2,141.7c-11,12.2-65.9,21.4-132.1,21.4c-69.8,0-127.2-10.3-133.5-23.5"/>
        <circle class="Droplet-outerDot" cx="9.1" cy="137.2" r=".75"/>
      </g>
      <g class="Droplet-foreground4">
        <circle class="Droplet-outerDot" cx="285.6" cy="205.8" r=".75"/>
        <path class="Droplet-line" d="M283.5,210.2c-11.6,12.2-70,21.4-140.4,21.4C69,231.7,8.1,221.4,1.4,208.2"/>
        <circle class="Droplet-outerDot" cx="0.8" cy="205.8" r=".75"/>
      </g>
      <g class="Droplet-foreground5">
        <circle class="Droplet-outerDot" cx="255.1" cy="267.6" r=".75"/>
        <path class="Droplet-line" d="M252.7,271.8c-10.6,9.3-55.6,16.3-109.5,16.3c-57.5,0-104.8-7.9-111.2-18.1"/>
        <circle class="Droplet-outerDot" cx="31.3" cy="267.6" r=".75"/>
      </g>
    </g>
    <g id="Dots">
      <circle data-group="1" class="Droplet-circle" cx="143" cy="41.5" r="3"/>
      <circle data-group="3" class="Droplet-circle" cx="143" cy="163.4" r="3"/>
      <circle data-group="2" class="Droplet-circle" cx="143" cy="97.9" r="3"/>
      <circle data-group="4" class="Droplet-circle" cx="143" cy="232" r="3"/>
      <circle data-group="5" class="Droplet-circle" cx="143" cy="288.5" r="3"/>
    </g>
  </g>
</svg>

            
          
!
            
              //
// Variables
//
$global-margin: 15px;
$global-muted: #a8a8a8;
$global-color: darken($global-muted, 25);
$global-background: #fff;
$global-primary: #0177FA;

html {
  height: 100%;
}

body {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Open Sans","Helvetica Neue",sans-serif;
  letter-spacing: 0;
  font-weight: 400;
  font-style: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -moz-font-feature-settings: "liga" on;
  color: $global-color;
  font-size: 15px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 100%;
  
  background: #EFF3F9;
  
  *, *:before, *:after {
    box-sizing: inherit;
  }
}

svg {
  max-width: 400px;
}
            
          
!
            
              // Droplet bounce
TweenMax.to('#Droplet-boundingShape', 3, {
  y: -15,
  yoyo: true,
  repeat: -1
});

// Droplet shadow
TweenMax.to('.Droplet-shadow', 3, {
  scale: 0.85,
  yoyo: true,
  repeat: -1,
  transformOrigin: 'center center'
});

const dropletDimensions = {
  1: {
    opacity: {
      delay1: 1.85,
      value: 0.15,
      delay2: 2.85
    },
    speed: 5,
    curviness: 0.5,
    values: [ // Default x: 141, y: 30
      {x: 46, y: -8},
      {x: 0, y: -16},
      {x: -46, y: -8},
      {x: 0, y: 0}
    ]
  },
  2: {
    opacity: {
      delay1: 3.40,
      value: 0.20,
      delay2: 6.25
    },
    speed: 10,
    curviness: 0.65,
    values: [ // Default x: 141, y: 86
      {x: 93.25 , y: -18.5 },
      {x: 0, y: -38.25},
      {x: -93.25, y: -18.5},
      {x: 0, y: 0}
    ]
  },
  3: {
    opacity: {
      delay1: 3.75,
      value: 0.25,
      delay2: 7.8
    },
    speed: 12,
    curviness: 0.65,
    values: [ // Default x: 141, y: 151
      {x: 132 , y: -26 },
      {x: 0, y: -52},
      {x: -132, y: -26},
      {x: 0, y: 0}
    ]
  },
  4: {
    opacity: {
      delay1: 4,
      value: 0.35,
      delay2: 9.65
    },
    speed: 14,
    curviness: 0.6,
    values: [ // Default x: 141, y: 219
      {x: 140.5 , y: -26 },
      {x: 0, y: -52},
      {x: -140.5, y: -26},
      {x: 0, y: 0}
    ]
  },
  5: {
    opacity: {
      delay1: 2.20,
      value: 0.5,
      delay2: 5.5
    },
    speed: 8,
    curviness: 0.65,
    values: [ // Default x: 141, y: 275
      {x: 110 , y: -21 },
      {x: 0, y: -41},
      {x: -110 , y: -21 },
      {x: 0, y: 0}
    ]
  }
};

for (let i = 1; i <= 5; i++) {
  const tlPath = new TimelineMax({ repeat: -1 });
  const dot = `circle[data-group="${i}"]`;
  const timeDelay = i * Math.random();

  tlPath
  .to(dot, dropletDimensions[i].speed, {
    bezier: {
      values: dropletDimensions[i].values,
      curviness: dropletDimensions[i].curviness
    },
    ease: Power0.easeNone
  }, 'droplet-path')
  .to(dot, 0.25, {
    delay: dropletDimensions[i].opacity.delay1,
    opacity: dropletDimensions[i].opacity.value,
    ease: Power0.easeNone
  }, 'droplet-path')
  .to(dot, 0.25, {
    delay: dropletDimensions[i].opacity.delay2,
    opacity: 1,
    ease: Power0.easeNone
  }, 'droplet-path');

  tlPath.time(timeDelay);
}
            
          
!
999px
Loading ..................

Console