css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

    <clipPath id="cp-roundcorners">
      <rect width="100%" height="100%" fill="gold" fill-opacity=".5"
    <symbol id="s-wavy-path">
      <g transform="translate(-50,60)">
        <path d="M903,4.5 C903,4.5 854,42.5341344 803.148089,42.2925317 C753.981141,42.0589344 753.709827,1.76742786 703.354914,2.13371392 C653,2.49999998 652.817934,41.4339085 602.908967,41.9840226 C553,42.5341367 552.597027,1.1857595 503.173513,1.84287976 C453.75,2.50000002 452.074424,40.9050063 403.037212,41.7195701 C354,42.5341339 350.880655,2.72739994 302.940328,2.61369997 C255,2.5 253.131621,42.5536648 203.06581,42.5341357 C153,42.5146065 154,2.5 103.175781,2.5 C52.3515625,2.5 3,42.5341344 3,42.5341344"></path>
    <symbol id="s-wavy-path-vert">
      <use xlink:href="#s-wavy-path" transform=" translate(130,-30) rotate(90)"/>
    <mask id="m-wavy-lines">
      <use xlink:href="#s-wavy-path" y="-100" class="u-line"/>
      <use xlink:href="#s-wavy-path" y="-50" class="u-line"/>
      <use xlink:href="#s-wavy-path" class="u-line"/>
      <use xlink:href="#s-wavy-path" y="50" class="u-line"/>
      <use xlink:href="#s-wavy-path" y="100" class="u-line"/>
      <use xlink:href="#s-wavy-path" y="150" class="u-line"/>
      <use xlink:href="#s-wavy-path" y="200" class="u-line"/>
      <use xlink:href="#s-wavy-path" y="250" class="u-line"/>
      <use xlink:href="#s-wavy-path" y="300" class="u-line"/>
      <use xlink:href="#s-wavy-path" y="350" class="u-line"/>
      <use xlink:href="#s-wavy-path" y="400" class="u-line"/>
      <use xlink:href="#s-wavy-path" y="450" class="u-line"/>
    <mask id="m-wavy-lines-vertical">
      <use xlink:href="#s-wavy-path-vert" x="-50" class="u-line"/>
      <use xlink:href="#s-wavy-path-vert" class="u-line"/>
      <use xlink:href="#s-wavy-path-vert" x="50" class="u-line"/>
      <use xlink:href="#s-wavy-path-vert" x="100" class="u-line"/>
      <use xlink:href="#s-wavy-path-vert" x="150" class="u-line"/>
      <use xlink:href="#s-wavy-path-vert" x="200" class="u-line"/>
      <use xlink:href="#s-wavy-path-vert" x="250" class="u-line"/>
      <use xlink:href="#s-wavy-path-vert" x="300" class="u-line"/>
      <use xlink:href="#s-wavy-path-vert" x="350" class="u-line"/>
      <use xlink:href="#s-wavy-path-vert" x="400" class="u-line"/>
      <use xlink:href="#s-wavy-path-vert" x="450" class="u-line"/>
      <use xlink:href="#s-wavy-path-vert" x="500" class="u-line"/>
      <use xlink:href="#s-wavy-path-vert" x="550" class="u-line"/>
      <use xlink:href="#s-wavy-path-vert" x="600" class="u-line"/>
      <use xlink:href="#s-wavy-path-vert" x="650" class="u-line"/>
      <use xlink:href="#s-wavy-path-vert" x="700" class="u-line"/>
      <use xlink:href="#s-wavy-path-vert" x="750" class="u-line"/>
      <use xlink:href="#s-wavy-path-vert" x="800" class="u-line"/>
      <use xlink:href="#s-wavy-path-vert" x="850" class="u-line"/>
    <symbol id="s-path">
      <path d="M0,0 0,800" transform="translate(25,0)"/>
    <mask id="m-lines">
      <use xlink:href="#s-path" class="u-line"/>
      <use xlink:href="#s-path" x="50" class="u-line"/>
      <use xlink:href="#s-path" x="100" class="u-line"/>
      <use xlink:href="#s-path" x="150" class="u-line"/>
      <use xlink:href="#s-path" x="200" class="u-line"/>
      <use xlink:href="#s-path" x="250" class="u-line"/>
      <use xlink:href="#s-path" x="300" class="u-line"/>
      <use xlink:href="#s-path" x="350" class="u-line"/>
      <use xlink:href="#s-path" x="400" class="u-line"/>
      <use xlink:href="#s-path" x="450" class="u-line"/>
      <use xlink:href="#s-path" x="500" class="u-line"/>
      <use xlink:href="#s-path" x="550" class="u-line"/>
      <use xlink:href="#s-path" x="600" class="u-line"/>
      <use xlink:href="#s-path" x="650" class="u-line"/>
      <use xlink:href="#s-path" x="700" class="u-line"/>
      <use xlink:href="#s-path" x="750" class="u-line"/>
      <use xlink:href="#s-path" x="800" class="u-line"/>
    <mask id="m-circles">
      <circle r="5" cx="0" cy="530" class="u-line"/>
      <circle r="50" cx="0" cy="530" class="u-line"/>
      <circle r="100" cx="0" cy="530" class="u-line"/>
      <circle r="150" cx="0" cy="530" class="u-line"/>
      <circle r="200" cx="0" cy="530" class="u-line"/>
      <circle r="250" cx="0" cy="530" class="u-line"/>
      <circle r="300" cx="0" cy="530" class="u-line"/>
      <circle r="350" cx="0" cy="530" class="u-line"/>
      <circle r="400" cx="0" cy="530" class="u-line"/>
      <circle r="450" cx="0" cy="530" class="u-line"/>
      <circle r="500" cx="0" cy="530" class="u-line"/>
      <circle r="550" cx="0" cy="530" class="u-line"/>
      <circle r="600" cx="0" cy="530" class="u-line"/>
      <circle r="650" cx="0" cy="530" class="u-line"/>
      <circle r="700" cx="0" cy="530" class="u-line"/>
      <circle r="750" cx="0" cy="530" class="u-line"/>
      <circle r="800" cx="0" cy="530" class="u-line"/>
      <circle r="850" cx="0" cy="530" class="u-line"/>
      <circle r="900" cx="0" cy="530" class="u-line"/>
      <circle r="950" cx="0" cy="530" class="u-line"/>
      <circle r="1000" cx="0" cy="530" class="u-line"/>
    <filter id="fl-shadow" filterUnits="userSpaceOnUse" x="0" y="0"
              width="800" height="500">
        <feGaussianBlur in="SourceAlpha" stdDeviation="2" result="blur"/>
        <feOffset in="blur" dx="0" dy="0" result="offsetBlr" />
        <feFlood flood-color="rgba(0,0,0,.9)"/>
        <feComposite operator="in" in2="offsetBlr" result="colBlur"/>
          <feMergeNode in="colBlur"/>
          <feMergeNode in="SourceGraphic"/>
  <text y="260" x="400" text-anchor="middle">SVG is magic.</text>
  <g class="g-images" clip-path="url(#cp-roundcorners)">
    <image xlink:href="https://img-fotki.yandex.ru/get/6208/5091629.73/0_63193_9ffa75d7_orig" width="100%" height="100%" class="image im-mask-waves-2"/>
    <image xlink:href="https://img-fotki.yandex.ru/get/5808/yoksel.62/0_513b2_f8213a6f_orig" width="100%" height="100%" class="image im-mask-waves-1"/>
    <image xlink:href="https://img-fotki.yandex.ru/get/4705/yoksel.62/0_50544_255fa1d3_orig" width="100%" height="100%" class="image im-mask-lines"/>
    <image xlink:href="https://img-fotki.yandex.ru/get/5604/yoksel.60/0_4f376_c12baf67_orig" width="100%" height="100%" class="image im-mask-circles"/>

              $duration: 25s;
$steps: 4;
$step: $duration/$steps;

$mask-duration: $step;

$vert-max: 28*2;
$vert-duration: $mask-duration;
$vert-step: $vert-duration/$vert-max;

  background: #111;

svg {
  display: block;
  position: absolute;
  width: 800px;
  height: 532px;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  overflow: visible;

text {
  fill: #222;
  fill-opacity: .5;
  font-size: 3em;
  filter: url(#fl-shadow)

.image {
  animation: opacity $duration infinite step-start; 
  opacity: 0;
  @for $item from 1 through $steps {
    &:nth-child(#{$steps}n + #{$item}) {
      animation-delay: -#{$step * $item};

@keyframes opacity {
  0% {
    opacity: 1;
  25% {
    opacity: 1;
  26% {
    opacity: 0;
  100% {
    opacity: 0;

.u-line {
  fill: none;
  stroke: white;
  stroke-width: 0;
  stroke-opacity: 0;

  animation: stroke-width-line $vert-duration infinite;
  @for $item from 1 through $vert-max {
    &:nth-child(#{$vert-max}n + #{$item}){
      animation-delay: $vert-step * $item;

@keyframes stroke-width-line {
  20% {
    stroke-width: 51;
    stroke-opacity: 1;
  60% {
    stroke-width: 51;
    stroke-opacity: 1
  70% {
    stroke-width: 0;
    stroke-opacity: 0;

image {
/*   display: none; */

.im-mask-waves-1 {
  mask: url(#m-wavy-lines);
.im-mask-waves-2 {
  mask: url(#m-wavy-lines-vertical);
.im-mask-lines {
  mask: url(#m-lines);

.im-mask-circles {
  mask: url(#m-circles);
🕑 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 ..................