Pen Settings

HTML

CSS

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

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

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.

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

              
                <div class="wrap">
<svg viewBox="0 0 300 210" xmlns="http://www.w3.org/2000/svg">
  
  <path class="dogOne" d="M23.986 91.045s6.146-3.614 18.412 10.073c8.216 9.166 40.285 20.02 54.291 2.934 1.45-48.202 24.424-64.181 65.074-53.698 25.287 2.987 50.476-1.576 74.403-8.179 10.418-3.886 16.859-3.717 27.271 3.602 5.169 2.425 4.03 8.657 5.818 13.205.78 1.987 4.228 4 5.564 4.999 16.765 12.546 17.515 18.693-.525 19.475-12.049 2.942-18.828-4.221-22.723-5.371-19.383-.211-33.849 16.466-36.824 18.299-26.834 16.529-38.696 24.228-48.213 50.005-1.478 7.026-.882 15.07.623 19.174 1.043 1.085 3.768 3.182 6.369 3.854 5.22 1.35 6.731 6.281-6.621 4.313-3.263-.481-10.97-17.113-11.296-39.077-14.85 13.125-20.729 27.557-7.268 42.877 2.125.926 4.837 2.13 6.231 2.258 3.986.366 7.938 4.903-3.627 5.73-2.944-.396-6.509-2.414-8.309-5.009l-13.069-16.753c-3.635-1.96-2.234-6.629 3.488-16.888 3.229-7.318-7.249-14.181-23.282-20.858-4.296-3.239-7.42-10.231-14.014-2.59-2.359 2.732-27.5 1.32-43.07-3.435-21.986-1.269-31.553-10.916-28.703-28.94z" fill="green" fill-opacity=".85"/>

<path class="dogTwo hidden"d="M26.073 105.906s5.889-4.017 19.046 8.816c8.812 8.595 41.536 17.275 54.365-.712-1.785-48.191 20.382-63.31 61.644-55.575 25.43 1.285 49.94-2.322 73.37-10.515 10.135-4.574 16.573-4.838 27.451 1.766 5.321 2.073 4.602 8.367 6.691 12.786.912 1.929 4.486 3.707 5.886 4.615 17.569 11.393 18.729 17.476.782 19.466-11.824 3.743-19.068-2.95-23.032-3.836-19.353 1.089-32.669 13.699-35.514 15.727-25.665 18.29-37.453 19.784-45.221 46.141-1.003 7.108-5.87 17.095-4.093 21.088 1.113 1.013 3.973 2.922 6.613 3.419 5.299.997 7.137 5.816-6.317 4.748-3.288-.262-12.143-14.457-13.941-36.35-16.384 18.475-28.226 26.245-3.326 39.385 2.182.782 4.968 1.801 6.368 1.836 4.002.098 8.249 4.359-3.234 5.96-2.965-.198-6.657-1.972-8.627-4.441l-13.774-12.551c-3.758-1.711-5.105-9.255-.084-19.874 2.731-7.519-.671-7.176-17.115-12.764-4.504-2.943-8.09-9.71-14.157-1.644-2.17 2.884-27.349 3.16-43.203-.54-22.021.208-32.214-8.776-30.578-26.951z" fill="#aa5342" fill-opacity=".85"/>
   
<path class="shit hidden" d="M105.73 114.781c.786-2.988-7.086-2.711-4.751 1.039l4.753 5.868 5.362-5.989c1.99-3.298-4.706-4.546-5.364-.918z" fill="green"/><path class="shit hidden" d="M105.73 114.781c.786-2.988-7.086-2.711-4.751 1.039l4.753 5.868 5.362-5.989c1.99-3.298-4.706-4.546-5.364-.918z" fill="green"/><path class="shit hidden" d="M105.73 114.781c.786-2.988-7.086-2.711-4.751 1.039l4.753 5.868 5.362-5.989c1.99-3.298-4.706-4.546-5.364-.918z" fill="green"/>
  <g id="allClean">
<path id="sauger" d="M -20 127 l 106 43" stroke="#565656"
  stroke-width="15" fill="none" />
  <ellipse id="saugerEnd" cx="85" cy="169.5" rx="4" ry="7.3" stroke="#7d7a7a" stroke-width="0.5" fill="#333333" />
  </g>
</svg>
</svg>
  
</div>
              
            
!

CSS

              
                body {
	background: grey;
	overflow: hidden;
	font-family: sans-serif;
}

svg{
  position:absolute;
  height:70%;
  margin:7vh 0 0 0;
  overflow:visible;
}
svg path{
  
}
.hidden{
  visibility:hidden;
}

/*  testing border-radius ===*/
.wrap{
  border-radius: 25% 75% 55% 45% / 28% 34% 66% 72%;
  box-shadow: 10px 11px 5px 0px rgba(0,0,0,0.5) inset;
  -webkit-box-shadow: 10px 11px 5px 0px rgba(0,0,0,0.5) inset;
  -moz-box-shadow: 10px 11px 5px 0px rgba(0,0,0,0.5) inset;

  width: 103vh;
  height: 85vh;
  margin: 1%;
  background-color: darkgrey;
}
              
            
!

JS

              
                
TweenLite.set('#saugerEnd',{rotation:16, transformOrigin:'50% 50%'})

var action = new TimelineMax({repeat:3, repeatDelay:1})
.to(".dogOne",3, {morphSVG:".dogTwo", ease: Power2.easeInOut})
.to('.dogOne',2,{rotation:-4, transformOrigin:'40% 100%', ease: Power2.easeInOut},1)
.staggerTo('.shit',1,{autoAlpha:1, y:60, ease: Power4.easeIn},1)
//.staggerTo('.shit',0.2,{scale:1.5,scaleY:0.8, ease: Power4.easeIn},1,1.8)
.addLabel('up')
.to(".dogOne",1, {morphSVG:".dogOne", ease: Power2.easeIn},'up')
.to('.dogOne',1,{rotation:0, transformOrigin:'40% 100%'},'up')
.from('#allClean',0.5,{x:-500},'up+=0.5')
.staggerTo('.shit',0.2,{x:-23, y:55, ease: Power4.easeIn},0.1,'+=0.1')
.set('#allClean, .shit',{autoAlpha:0},'+=0.2')
.to('.wrap',4,{borderRadius: "25% 75% 55% 45% / 80% 34% 66% 72%", repeat:1, yoyo:true},1)


              
            
!
999px

Console