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


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


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.


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.


                <svg version="1.1" xmlns="" xmlns:xlink="" x="0px" y="0px"
	 viewBox="0 0 841.9 595.3" style="enable-background:new 0 0 841.9 595.3;" xml:space="preserve">
<style type="text/css">

<g id="sky">
	<rect id="night" class= "nacht" x="1.4" y="1.2" class="st0" width="841.9" height="472.3"/>
	<rect id="day" y="1.2" class="st1" width="841.9" height="472.3"/>
<g id="ground">
	<rect id="dark" y="473.6" class="st3" width="841.9" height="121.7"/>
  <rect id="light" x="-0.4" y="473.6" class="st2" width="841.9" height="121.7"/>
<g id="wolk3" class="wolk">
	<circle class="st4" cx="652.9" cy="123.8" r="24.4"/>
	<circle class="st4" cx="680.9" cy="133.4" r="24.4"/>
	<circle class="st4" cx="637.9" cy="150.5" r="24.4"/>
	<circle class="st4" cx="677.3" cy="159.9" r="24.4"/>
	<circle class="st4" cx="705.3" cy="148.2" r="24.4"/>
<g id="wolk_4" class="wolk">
	<circle class="st5" cx="561.2" cy="48.4" r="24.4"/>
	<circle class="st5" cx="589.2" cy="57.9" r="24.4"/>
	<circle class="st5" cx="546.2" cy="75" r="24.4"/>
	<circle class="st5" cx="585.5" cy="84.4" r="24.4"/>
	<circle class="st5" cx="613.5" cy="72.7" r="24.4"/>
<g id="wolk1" class="wolk">
		<path class="st4" d="M286.4,143.4h-89.8c-6.8,0-12.4-5.5-12.4-12.4v-13.5c0-6.8,5.5-12.4,12.4-12.4h89.8c6.8,0,12.4,5.5,12.4,12.4
		<ellipse class="st4" cx="202.2" cy="116.6" rx="27.8" ry="26.8"/>
		<ellipse class="st4" cx="230" cy="93.2" rx="27.8" ry="26.8"/>
		<circle class="st4" cx="271.2" cy="107.5" r="35.9"/>
	<ellipse class="st4" cx="275.8" cy="126.1" rx="27.1" ry="30.1"/>
	<ellipse class="st4" cx="248.7" cy="129.3" rx="24" ry="21.9"/>
	<ellipse class="st4" cx="208.2" cy="129.3" rx="24" ry="21.9"/>
<g id="wolk2" class="wolk">
	<path class="st4" d="M479.9,167.1H377c-5.8,0-10.5-4.7-10.5-10.5v-4.4c0-5.8,4.7-10.5,10.5-10.5h102.8c5.8,0,10.5,4.7,10.5,10.5
	<circle class="st4" cx="416.9" cy="154.5" r="21.1"/>
	<ellipse class="st4" cx="408.9" cy="127.4" rx="33" ry="32.6"/>
	<ellipse class="st4" cx="472.2" cy="136.9" rx="28.8" ry="26"/>
	<ellipse class="st4" cx="450.5" cy="108.3" rx="39.3" ry="35.1"/>
	<ellipse class="st4" cx="387.5" cy="137.7" rx="33" ry="32.6"/>
	<circle class="st4" cx="443.4" cy="159.9" r="21.1"/>
	<ellipse class="st4" cx="463" cy="162.9" rx="14.9" ry="12.4"/>
<g id="appelboom">
	<g id="boom">
			<path class="st6" d="M155.4,517.9h-1.2c-4.6,0-8.2-3.7-8.2-8.2v-93.1c0-4.6,3.7-8.2,8.2-8.2h1.2c4.6,0,8.2,3.7,8.2,8.2v93.1
			<circle class="st7" cx="150.2" cy="344.1" r="33.2"/>
			<circle class="st7" cx="126.1" cy="397.8" r="33.2"/>
			<circle class="st7" cx="150.2" cy="402.7" r="33.2"/>
			<circle class="st7" cx="114.2" cy="357.5" r="33.2"/>
			<circle class="st7" cx="176.6" cy="364.6" r="33.2"/>
			<circle class="st7" cx="117" cy="307.5" r="33.2"/>
			<circle class="st7" cx="150.2" cy="287.6" r="33.2"/>
			<circle class="st7" cx="183.5" cy="335.9" r="33.2"/>
			<circle class="st7" cx="190" cy="397.8" r="33.2"/>
			<circle class="st7" cx="196.8" cy="357.5" r="33.2"/>
			<circle class="st7" cx="186.6" cy="302.7" r="33.2"/>
	<g id="appel1" class="appel">
				<ellipse transform="matrix(0.3921 -0.9199 0.9199 0.3921 -296.5203 353.9737)" class="st8" cx="119.6" cy="401.4" rx="7.2" ry="6"/>
			<path class="st6" d="M116.5,393.3l-0.2,0c-0.1,0-0.2,0.1-0.2,0.2l0.3,2.5c0,0.1,0.1,0.2,0.2,0.2l0.2,0c0.1,0,0.2-0.1,0.2-0.2
				<ellipse transform="matrix(0.6346 -0.7728 0.7728 0.6346 -268.3804 235.7477)" class="st8" cx="115.1" cy="401.7" rx="6" ry="7.4"/>
	<g id="appel2" class="appel">
				<ellipse transform="matrix(0.3921 -0.9199 0.9199 0.3921 -207.247 310.9454)" class="st8" cx="131.7" cy="312.3" rx="7.2" ry="6"/>
			<path class="st6" d="M128.6,304.2l-0.2,0c-0.1,0-0.2,0.1-0.2,0.2l0.3,2.5c0,0.1,0.1,0.2,0.2,0.2l0.2,0c0.1,0,0.2-0.1,0.2-0.2
				<ellipse transform="matrix(0.6346 -0.7728 0.7728 0.6346 -195.1364 212.5401)" class="st8" cx="127.2" cy="312.6" rx="6" ry="7.4"/>
	<g id="appel3" class="appel">
				<ellipse transform="matrix(0.3921 -0.9199 0.9199 0.3921 -244.6796 407.5215)" class="st8" cx="186" cy="388.9" rx="7.2" ry="6"/>
			<path class="st6" d="M182.9,380.9l-0.2,0c-0.1,0-0.2,0.1-0.2,0.2l0.3,2.5c0,0.1,0.1,0.2,0.2,0.2l0.2,0c0.1,0,0.2-0.1,0.2-0.2
				<ellipse transform="matrix(0.6346 -0.7728 0.7728 0.6346 -234.482 282.5427)" class="st8" cx="181.6" cy="389.3" rx="6" ry="7.4"/>
	<g id="appel4" class="appel">
				<ellipse transform="matrix(0.3921 -0.9199 0.9199 0.3921 -228.4258 361.4785)" class="st8" cx="159.3" cy="353.6" rx="7.2" ry="6"/>
			<path class="st6" d="M156.2,345.5l-0.2,0c-0.1,0-0.2,0.1-0.2,0.2l0.3,2.5c0,0.1,0.1,0.2,0.2,0.2l0.2,0c0.1,0,0.2-0.1,0.2-0.2
				<ellipse transform="matrix(0.6346 -0.7728 0.7728 0.6346 -216.9459 248.9937)" class="st8" cx="154.9" cy="353.9" rx="6" ry="7.4"/>
	<g id="appel5" class="appel">
				<ellipse transform="matrix(0.3921 -0.9199 0.9199 0.3921 -173.1136 360.8391)" class="st8" cx="186.5" cy="311.4" rx="7.2" ry="6"/>
			<path class="st6" d="M183.4,303.4l-0.2,0c-0.1,0-0.2,0.1-0.2,0.2l0.3,2.5c0,0.1,0.1,0.2,0.2,0.2l0.2,0c0.1,0,0.2-0.1,0.2-0.2
				<ellipse transform="matrix(0.6346 -0.7728 0.7728 0.6346 -174.4258 254.5841)" class="st8" cx="182" cy="311.8" rx="6" ry="7.4"/>
<a class="zon" href="#">
	<path id="end" class="st9" d="M546.2,313.2c5.1,1.9,10.7,2.9,16.4,2.9c26.4,0,47.9-21.4,47.9-47.9s-21.4-47.9-47.9-47.9
	<circle id="start" class="st10" cx="564.8" cy="265.5" r="55.3"/>



  width: 10px;




var select = function(s) {
    return document.querySelector(s); },
    zon = select('#zon'),
    button = select('.zon')

var buttonTl = new TimelineMax({paused:true});"#start", 2, {morphSVG:"#end", fill:"#C1C6CD", stroke:"#697DA8", ease:Power4.easeOut})"#light, #day", 2, {opacity:0}, 0);
button.addEventListener('click', function() {
  if (buttonTl.time() > 0) {
  } else {;

Draggable.create(".wolk", {
  bounds: "svg", 
  onDrag:function( ){


// //appletree
TweenMax.set(".appel", {
  transformOrigin: '40% 10%',


Draggable.create(".appel", {
  type: "rotation",