Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!--
concept: part of the traveling series
techniques: sequence animation
challenges: doing math
-->

<svg version="1.1" class="ship" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	 viewBox="0 0 600 600" style="enable-background:new 0 0 600 600;" xml:space="preserve">
<circle id="sun" class="ship1" cx="520.8" cy="369.8" r="44.9"/>


  <rect id="smoke1"  x="173" y="225" width="18" height="10"/>
  <rect id="smoke2"  x="173" y="225" width="18" height="10"/>
  <rect id="smoke3"  x="173" y="225" width="18" height="10"/>
  <rect id="smoke4"  x="173" y="225" width="18" height="10"/>



<g id="ship">
  <polyline class="ship3" points="261.4,274.1 266.7,246.9 272.1,274.3 261.4,274.1 		"/>
  <ellipse class="ship1" cx="267.1" cy="253.7" rx="13.6" ry="13.3"/>
  <path class="ship3" d="M274.8,244c5.2,4.1,6,11.6,1.8,16.9c0,0-2.4-5.9-7.6-10c-5.2-4.1-11.1-4.7-11.1-4.7
    C262.1,240.9,269.6,239.9,274.8,244z"/>
  <polyline class="ship1" points="269.6,274.3 272.1,274.3 270.9,268.1 		"/>
  <polygon class="ship3" points="389.3,371.2 108.9,371.2 85.7,319.9 86.2,315.7 97.2,315.1 111.6,274.3 318.2,274.1 318.4,286.7
    331.6,286.6 332,296.9 344.9,296.9 345.5,319 447.5,310.5 		"/>
  <path class="ship1" d="M294.6,274.2l23.6,0l0.2,12.6l13.2-0.1l0.4,10.2h12.9l1.4,23.7c0,0-79.5,6.6-123.1,7.3
    c-34.4,0.5,97.4-8.2,97.4-8.2l-0.7-20.2l-15.9-0.2l0.1-11h-9.8L294.6,274.2z"/>
  <g>
    <polygon class="ship1" points="195.1,275 167,275 172.2,238.8 189.9,238.8 			"/>
    <polygon class="ship3" points="189.3,275 167,275 172.2,238.8 187.5,238.8 			"/>
  </g>
  <path class="ship4" d="M189.4,240H173c-1.2,0-2.1-0.9-2.1-2.1v0c0-1.2,0.9-2.1,2.1-2.1h16.4c1.2,0,2.1,0.9,2.1,2.1v0
    C191.5,239,190.6,240,189.4,240z"/>
  <polygon class="ship5" points="294.6,288.2 199.8,288.2 190.6,297.5 103.4,297.5 110.1,277.5 294.5,277.6 		"/>
  <path class="ship1" d="M134.6,286.7h-20.4c-1.3,0-2.3-1.2-2.1-2.5l0.6-3.6h23.5l0.6,3.6C136.9,285.6,135.9,286.7,134.6,286.7z"/>
  <path class="ship6" d="M131.6,281.6h-14.5c-0.7,0-1.3-0.6-1.3-1.3v-0.6c0-0.7,0.6-1.3,1.3-1.3h14.5c0.7,0,1.3,0.6,1.3,1.3v0.6
    C132.9,281,132.3,281.6,131.6,281.6z"/>
  <path class="ship3" d="M134.6,286.7h-20.4c-1.3,0-2.3-1.2-2.1-2.5h24.6C136.9,285.6,135.9,286.7,134.6,286.7z"/>
  <path class="ship1" d="M163.6,286.7h-20.4c-1.3,0-2.3-1.2-2.1-2.5l0.6-3.6h23.5l0.6,3.6C165.9,285.6,164.9,286.7,163.6,286.7z"/>
  <path class="ship6" d="M160.6,281.6h-14.5c-0.7,0-1.3-0.6-1.3-1.3v-0.6c0-0.7,0.6-1.3,1.3-1.3h14.5c0.7,0,1.3,0.6,1.3,1.3v0.6
    C161.9,281,161.3,281.6,160.6,281.6z"/>
  <path class="ship3" d="M163.6,286.7h-20.4c-1.3,0-2.3-1.2-2.1-2.5h24.6C165.9,285.6,164.9,286.7,163.6,286.7z"/>
  <path class="ship1" d="M191.6,286.7h-20.4c-1.3,0-2.3-1.2-2.1-2.5l0.6-3.6h23.5l0.6,3.6C193.9,285.6,192.9,286.7,191.6,286.7z"/>
  <path class="ship6" d="M188.6,281.6h-14.5c-0.7,0-1.3-0.6-1.3-1.3v-0.6c0-0.7,0.6-1.3,1.3-1.3h14.5c0.7,0,1.3,0.6,1.3,1.3v0.6
    C189.9,281,189.3,281.6,188.6,281.6z"/>
  <path class="ship3" d="M191.6,286.7h-20.4c-1.3,0-2.3-1.2-2.1-2.5h24.6C193.9,285.6,192.9,286.7,191.6,286.7z"/>
  <g id="windows">
    <rect x="299.9" y="278.2" class="ship7" width="2.2" height="3"/>
    <rect x="311.9" y="291.2" class="ship7" width="2.2" height="3"/>
    <rect x="330.9" y="303.2" class="ship7" width="2.2" height="3"/>
    <rect x="308.8" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="281.6" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="256.6" y="291.2" class="ship7" width="2.5" height="3"/>
    <rect x="252.1" y="291.2" class="ship7" width="2.5" height="3"/>
    <rect x="266.7" y="303.2" class="ship7" width="2.5" height="3"/>
    <rect x="232.5" y="303.2" class="ship7" width="2.5" height="3"/>
    <rect x="192.4" y="303.2" class="ship7" width="2.5" height="3"/>
    <rect x="186.7" y="303.2" class="ship7" width="2.5" height="3"/>
    <rect x="181.1" y="303.2" class="ship7" width="2.5" height="3"/>
    <rect x="175.5" y="303.2" class="ship7" width="2.5" height="3"/>
    <rect x="157.1" y="303.2" class="ship7" width="2.5" height="3"/>
    <rect x="151.4" y="303.2" class="ship7" width="2.5" height="3"/>
    <rect x="123.1" y="303.2" class="ship7" width="2.5" height="3"/>
    <rect x="117.4" y="303.2" class="ship7" width="2.5" height="3"/>
    <rect x="111.7" y="303.2" class="ship7" width="2.5" height="3"/>
    <rect x="106.1" y="303.2" class="ship7" width="2.5" height="3"/>
    <rect x="275.8" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="270.1" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="264.4" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="239.8" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="234.1" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="228.4" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="223.9" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="218.2" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="212.6" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="206.8" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="201.1" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="168.8" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="163.1" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="157.4" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="152.9" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="147.2" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="141.6" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="135.8" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="130.1" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="124.4" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="119.9" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="114.2" y="315.8" class="ship7" width="2.5" height="3"/>
    <rect x="108.6" y="315.8" class="ship7" width="2.5" height="3"/>
    <path class="ship7" d="M298.8,292.6c0-0.8-0.7-1.5-1.5-1.5H270c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5h27.4
      C298.2,294.1,298.8,293.4,298.8,292.6z"/>
    <path class="ship7" d="M248.9,292.6c0-0.8-0.7-1.5-1.5-1.5H231c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5h16.5
      C248.3,294.1,248.9,293.4,248.9,292.6z"/>
    <path class="ship7" d="M216.7,292.6c0-0.8-0.7-1.5-1.5-1.5H201c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5h14.3
      C216,294.1,216.7,293.4,216.7,292.6z"/>
    <path class="ship7" d="M307.3,303.1h-18.6c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5h18.6c0.8,0,1.5-0.7,1.5-1.5
      S308.2,303.1,307.3,303.1z"/>
    <path class="ship7" d="M314.6,278.2h-9.9c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5h9.9c0.8,0,1.5-0.7,1.5-1.5
      S315.4,278.2,314.6,278.2z"/>
    <path class="ship7" d="M261.8,303.1h-12.1c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5h12.1c0.8,0,1.5-0.7,1.5-1.5
      S262.6,303.1,261.8,303.1z"/>
    <path class="ship7" d="M227.3,303.1h-18.6c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5h18.6c0.8,0,1.5-0.7,1.5-1.5
      S228.2,303.1,227.3,303.1z"/>
    <path class="ship7" d="M197.2,315.7h-17.3c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5h17.3c0.8,0,1.5-0.7,1.5-1.5
      S198,315.7,197.2,315.7z"/>
    <path class="ship7" d="M149.8,304.6c0-0.8-0.7-1.5-1.5-1.5h-18.6c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5h18.6
      C149.2,306.1,149.8,305.4,149.8,304.6z"/>
    <path class="ship7" d="M304.7,315.8h-16c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5h16c0.8,0,1.5-0.7,1.5-1.5S305.5,315.8,304.7,315.8
      z"/>
    <path class="ship7" d="M260.8,315.8h-11.1c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5h11.1c0.8,0,1.5-0.7,1.5-1.5
      S261.6,315.8,260.8,315.8z"/>
    <path class="ship7" d="M327.5,291.1h-9.9c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5h9.9c0.8,0,1.5-0.7,1.5-1.5
      S328.4,291.1,327.5,291.1z"/>
    <path class="ship7" d="M341.5,303.1h-5.7c-0.8,0-1.5,0.7-1.5,1.5s0.7,1.5,1.5,1.5h5.7c0.8,0,1.5-0.7,1.5-1.5
      S342.3,303.1,341.5,303.1z"/>
  </g>
  <path class="ship3" d="M389.3,371.2H108.9l59.4-48.2c0,0,108.7-1.2,148.9-4.3c27.7-2.2,132.4-10.1,132.4-10.1L389.3,371.2z"/>
  <path class="ship8" d="M389.3,371.2H108.9l-23.2-51.3c0,0,54.7,1.3,138.9,2.5c43.6,0.6,218.9-7.9,218.9-7.9L389.3,371.2z"/>
  <path class="ship9" d="M418.7,323.4c0,0-124.7,8.3-168.8,9.2c-44.1,0.9-115.9,0-156.5-3.9"/>
  <rect x="238.9" y="228.7" class="ship1" width="2" height="46.2"/>
  <line class="ship10" x1="239.9" y1="228.7" x2="221.5" y2="274.5"/>
  <line class="ship10" x1="240.5" y1="228.7" x2="258.9" y2="274.5"/>
  <polygon class="ship3" points="240.6,228.7 238.9,228.7 238.9,274.8 240.7,274.8 		"/>
  <path class="ship1" d="M250.5,237.7h-21c-0.4,0-0.7-0.3-0.7-0.7l0,0c0-0.4,0.3-0.7,0.7-0.7h21c0.4,0,0.7,0.3,0.7,0.7l0,0
    C251.2,237.4,250.9,237.7,250.5,237.7z"/>
  <path class="ship1" d="M247.6,243.3h-15.1c-0.4,0-0.7-0.3-0.7-0.7l0,0c0-0.4,0.3-0.7,0.7-0.7h15.1c0.4,0,0.7,0.3,0.7,0.7l0,0
    C248.3,242.9,248,243.3,247.6,243.3z"/>
  <path class="ship1" d="M245.7,249.6h-11.4c-0.4,0-0.7-0.3-0.7-0.7l0,0c0-0.4,0.3-0.7,0.7-0.7h11.4c0.4,0,0.7,0.3,0.7,0.7l0,0
    C246.5,249.2,246.1,249.6,245.7,249.6z"/>
</g>
<rect id="sea" x="0" y="370" class="ship2" width="600" height="230"/>
<path id="wave6" d="M324.3,382.1c0,0-23.2,2.1-56.7-3"/>
<path id="wave5" d="M378.1,378.6c0,0-13.8,3.4-34.5,3.5"/>
<path id="wave4" d="M127,375.2c0,0-21.7,5.4-54.4,5.5"/>
<path id="wave3"  d="M93.1,390.5c0,0-25.7,2.3-62.9-3.4"/>
<path id="wave2"  d="M200,381c0,0-25.7,2.3-62.9-3.4"/>
<path id="wave1"  d="M253.6,375.5c0,0-21.8,3.6-42.4,5.3"/>
<path id="spindript" class="ship1" d="M256.9,371h114.2h25.3c0,0,10.9-3.6,9-8.1s-4.5-3.6-10.9,0.9c0,0-6.3,4.5-11.8,2.7
  c-5.4-1.8-6.3-5.4-14.5-4.5c-8.1,0.9-6.3,3.6-19,5.4c-12.7,1.8-16.3-3.6-19.9-4.5S296.8,368.3,256.9,371z"/>
  <g>
    <path id="wave1"  d="M538.2,424.7c0,0-21.6,0.7-41.8-0.4"/>
    <path id="wave2"  d="M559.7,388.6c0,0-32.6,2.3-79.8-3.4"/>
    <path id="wave3"  d="M545.5,411c0,0-21.7,5.4-54.4,5.5"/>
    <path id="wave4"  d="M545.9,403.9c0,0-20.5,2.3-50.4-1.5"/>
    <path id="wave5" d="M553.3,375.1c0,0-29,4.2-72.1,2.2"/>
  </g>


</svg>
              
            
!

CSS

              
                

.ship0{fill:#FFE2F2;}
.ship1{fill:#FFFFFF;}
.ship2{fill:#235ACE;}
.ship3{fill:#9ACBE2;}
.ship4{fill:#002C56;}
.ship5{fill:#6786A5;}
.ship6{fill:#FF6B00;}
.ship7{fill:#0022A4;}
.ship8{fill:#233569;}
.ship9{fill:none;stroke:#235ACE;stroke-width:2;stroke-linecap:round;stroke-miterlimit:10;}
.ship10{fill:none;stroke:#9ACBE2;stroke-miterlimit:10;}
.ship12{fill:none;stroke:#B0FFFF;stroke-width:3;stroke-miterlimit:10;}

.ship14{display:none;}
.ship15{display:inline;fill:none;stroke:#2393F5;stroke-miterlimit:10;}
.ship16{display:inline;fill:#F6B7B8;}

.ship{
  background-color: #ffe2f2;
}





#smoke1{
  fill:#F6BBB8;
  transform-origin:180px 225px;
  animation:smoke1 12s linear infinite;
}


@keyframes smoke1{
0%{transform:translate(0,10px)scale(0); opacity:0; rx: 5; ry:50%}
5%{transform:translate(0,0)scale(1); opacity:1; rx:5;ry:50%;}
25%{transform:translate(-20px,-20px)scale(3,2.4); opacity:1; rx:4;ry:50%;}
45%{transform:translate(-40px,-40px)scale(2.4,3.6); opacity:1;rx:7.5;ry:50%;}
65%{transform:translate(-60px,-60px)scale(6,4); opacity:1;rx:3.33;ry:50%;}
85%{transform:translate(-80px,-80px)scale(4,4.8); opacity:0.8;rx:6;ry:50%;}
100%{transform:translate(-90px,-90px)scale(5.6,4.8); opacity:0;rx:4.29;ry:50%;}
}


#smoke2{
  fill:#F6BBB8;
  transform-origin:180px 225px;
  animation:smoke2 12s linear infinite;
}


@keyframes smoke2{
  0%{transform:translate(-75px,-75px)scale(4.5,4.6); opacity:0.75;rx:5.11;ry:50%;}
  19%{transform:translate(-90px,-90px)scale(5.6,4.8); opacity:0;rx:4.29;ry:50%;}
  20%{transform:translate(0,10px)scale(0); opacity:0; rx: 5; ry:50%}
  25%{transform:translate(0,0)scale(1); opacity:1; rx:5;ry:50%;}
  45%{transform:translate(-20px,-20px)scale(3,2.4); opacity:1; rx:4;ry:50%;}
  65%{transform:translate(-40px,-40px)scale(2.4,3.6); opacity:1;rx:7.5;ry:50%;}
  85%{transform:translate(-60px,-60px)scale(6,4); opacity:1;rx:3.33;ry:50%;}
  100%{transform:translate(-75px,-75px)scale(4.5,4.6); opacity:0.75;rx:5.11;ry:50%;}
}


#smoke3{
  fill:#F6BBB8;
  transform-origin:180px 225px;
  animation:smoke3 12s linear infinite;
}


@keyframes smoke3{
  0% {transform:translate(-55px,-55px)scale(5.1,3.9); opacity:1;rx:3.82;ry:50%;}
  20%{transform:translate(-75px,-75px)scale(4.5,4.6); opacity:0.75;rx:5.11;ry:50%;}
  39%{transform:translate(-90px,-90px)scale(5.6,4.8); opacity:0;rx:4.29;ry:50%;}
  40%{transform:translate(0,10px)scale(0); opacity:0; rx: 5; ry:50%}
  45%{transform:translate(0,0)scale(1); opacity:1; rx:5;ry:50%;}
  65%{transform:translate(-20px,-20px)scale(3,2.4); opacity:1; rx:4;ry:50%;}
  85%{transform:translate(-40px,-40px)scale(2.4,3.6); opacity:1;rx:7.5;ry:50%;}
  100%{transform:translate(-55px,-55px)scale(5.1,3.9); opacity:1;rx:3.82;ry:50%;}
}


#smoke4{
  fill:#F6BBB8;
  transform-origin:180px 225px;
  animation:smoke4 12s linear infinite;
}


@keyframes smoke4{
  0%{transform:translate(-35px,-35px)scale(2.55,3.3); opacity:1;rx:6.47;ry:50%;}
  20% {transform:translate(-55px,-55px)scale(5.1,3.9); opacity:1;rx:3.82;ry:50%;}
  40%{transform:translate(-75px,-75px)scale(4.5,4.6); opacity:0.75;rx:5.11;ry:50%;}
  59%{transform:translate(-90px,-90px)scale(5.6,4.8); opacity:0;rx:4.29;ry:50%;}
  60%{transform:translate(0,10px)scale(0); opacity:0; rx: 5; ry:50%}
  65%{transform:translate(0,0)scale(1); opacity:1; rx:5;ry:50%;}
  85%{transform:translate(-20px,-20px)scale(3,2.4); opacity:1; rx:4;ry:50%;}
  100%{transform:translate(-35px,-35px)scale(2.55,3.3); opacity:1;rx:6.47;ry:50%;}
}

#ship{
  transform-origin:center center;
  animation:ship 4s ease infinite;
}
@keyframes ship{
0%{
transform:translate(0,0)rotate(-1.5deg);
}
50%{
transform:translate(1px,2px)rotate(0deg);
}
100%{
transform:translate(0,0)rotate(-1.5deg);
}
}

#wave1{
  stroke:#5494FF;stroke-width:3; stroke-linecap:round;stroke-miterlimit:10;fill:none;
  animation:wv1 4s linear infinite;
}

@keyframes wv1{
0%{
  stroke-dasharray:30;
  stroke-dashoffset:30;
 }
50%{stroke-dasharray:30;
  stroke-dashoffset:0;
}
100%{   stroke-dasharray:30;
  stroke-dashoffset:-30;
}
}

#wave2{
  stroke:#5494FF;stroke-width:3; stroke-linecap:round;stroke-miterlimit:10;fill:none;
  animation:wv2 4s linear infinite;
}

@keyframes wv2{

0%{stroke-dasharray:20;
  stroke-dashoffset:0;}

50%{
  stroke-dasharray:20;
  stroke-dashoffset:-20;
 }
100%{stroke-dasharray:20;
  stroke-dashoffset:-40;
}

}

#wave3{
  stroke:#5494FF;stroke-width:3; stroke-linecap:round;stroke-miterlimit:10;fill:none;
  animation:wv3 4s linear infinite;
}

@keyframes wv3{

0%{stroke-dasharray:20;
  stroke-dashoffset:0;}

50%{
  stroke-dasharray:20;
  stroke-dashoffset:-20;
 }
100%{stroke-dasharray:20;
  stroke-dashoffset:-40;
}

}


#wave4{
  stroke:#5494FF;stroke-width:3; stroke-linecap:round;stroke-miterlimit:10;fill:none;
  animation:wv4 4s linear infinite;
}

@keyframes wv4{

0%{stroke-dasharray:25;
  stroke-dashoffset:0;}

50%{
  stroke-dasharray:25;
  stroke-dashoffset:-25;
 }
100%{stroke-dasharray:25;
  stroke-dashoffset:-50;
}

}


#wave5{
  stroke:#5494FF;stroke-width:3; stroke-linecap:round;stroke-miterlimit:10;fill:none;
  animation:wv5 4s linear infinite;
}

@keyframes wv5{

0%{stroke-dasharray:35;
  stroke-dashoffset:0;}

50%{
  stroke-dasharray:35;
  stroke-dashoffset:-35;
 }
100%{stroke-dasharray:35;
  stroke-dashoffset:-70;
}

}

#wave6{
  stroke:#5494FF;stroke-width:3; stroke-linecap:round;stroke-miterlimit:10;fill:none;
  animation:wv6 4s linear infinite;
}

@keyframes wv6{

0%{stroke-dasharray:45;
  stroke-dashoffset:45;}

50%{stroke-dasharray:45;
  stroke-dashoffset:0;}

100%{
  stroke-dasharray:45;
  stroke-dashoffset:-45;
 }


}



#spindript{
transform-origin:center center;
animation:spindript 4s ease infinite;
}

@keyframes spindript{
0%{
transform:translate(-3px,0);
}

50%{transform:translate(5px,2px);}

100%{transform:translate(-3px,0); }

}

              
            
!

JS

              
                
              
            
!
999px

Console