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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

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.

HTML

            
              <div class="container">

  <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	 width="612px" height="543px" viewBox="0 0 612 543" enable-background="new 0 0 612 543" xml:space="preserve">
    
    <defs>
        <clipPath id="clip">
            <path id="coffeStreamClip" d="M226.683,296.449c0,3.255,2.639,5.895,5.895,5.895l0,0c3.255,0,5.894-2.639,5.894-5.895
	v-73.211c0-3.255-2.639-5.896-5.894-5.896l0,0c-3.255,0-5.895,2.639-5.895,5.896V296.449z"/>
        </clipPath>
    </defs>
<g class="CoffeKettle">
	<g id="CoffeKettle">
		<path fill="#7B7B7B" stroke="#FFFFFF" stroke-width="4" stroke-miterlimit="10" d="M427.831,254.645
			c0.047,13.854-11.147,25.121-25.001,25.167l-131.686,0.432c-13.852,0.045-25.12-11.148-25.167-25.001l-0.25-76.295
			c-0.045-13.851,11.149-25.118,25.001-25.163l131.685-0.435c13.853-0.044,25.121,11.15,25.165,25L427.831,254.645z"/>
		<path fill="#7B7B7B" stroke="#FFFFFF" stroke-width="3" stroke-miterlimit="10" d="M254.911,111.233l160.167-0.526
			c0,0,1.902,22.489-9.856,22.527c-11.758,0.039-139,0.457-139,0.457S254.987,134.32,254.911,111.233z"/>
		<g>
			<g>
				<path fill="#1C1818" d="M434.777,142.792c0.012,3.462-4.135,6.284-9.255,6.301l-18.175,0.06l-143.033,0.471
					c-5.124,0.016-9.287-2.778-9.299-6.241l0,0c-0.011-3.462,4.134-6.283,9.258-6.301l161.205-0.529
					C430.603,136.536,434.768,139.331,434.777,142.792L434.777,142.792z"/>
				<path fill="#1C1818" d="M424.914,109.554c0.018,4.907-3.946,8.896-8.852,8.912l-137.959,0.453
					c-4.906,0.018-8.896-3.946-8.913-8.852l0,0c-0.016-4.907,3.948-8.897,8.854-8.913l137.958-0.454
					C420.909,100.683,424.9,104.648,424.914,109.554L424.914,109.554z"/>
				<path fill="#1C1818" d="M429.621,137.146c0.017,4.473-3.6,8.113-8.073,8.126l0,0c-4.473,0.015-8.11-3.6-8.127-8.073
					l-0.093-28.392c-0.016-4.473,3.601-8.111,8.074-8.126l0,0c4.471-0.014,8.11,3.601,8.126,8.073L429.621,137.146z"/>
				<path fill="#1C1818" d="M461.944,139.739c0.017,5.1-3.609,9.247-8.1,9.262l-32.258,0.106c-4.487,0.015-8.142-4.109-8.158-9.208
					l0,0c-0.016-5.102,3.61-9.25,8.098-9.263l32.258-0.108C458.274,130.514,461.927,134.638,461.944,139.739L461.944,139.739z"/>
				<path fill="#1C1818" d="M462.668,255.262c0.018,4.79-4.086,8.687-9.159,8.704l0,0c-5.073,0.016-9.198-3.853-9.213-8.643
					l-0.384-116.085c-0.018-4.792,4.086-8.691,9.158-8.707l0,0c5.072-0.018,9.2,3.854,9.217,8.646L462.668,255.262z"/>
			</g>
		</g>
	</g>
	<path id="GlitterKettle" opacity="0.5" fill="#FFFFFF" enable-background="new    " d="M291.197,234.535
		c0.042,13.086-7.955,23.723-17.861,23.757l0,0c-9.908,0.032-17.977-10.554-18.019-23.64l-0.154-46.667
		c-0.043-13.087,7.955-23.724,17.863-23.756l0,0c9.907-0.033,17.974,10.552,18.018,23.637L291.197,234.535z"/>
</g>
<g class="Cup">
	<path opacity="0.3" enable-background="new    " d="M189.205,400.213c0-7.553,11.231-13.676,25.083-13.676h36.58
		c13.852,0,25.083,6.123,25.083,13.676v8.361c0,7.553-11.231,13.676-25.083,13.676h-36.58c-13.853,0-25.083-6.123-25.083-13.676
		V400.213L189.205,400.213z"/>
	<g id="Cup">
		<path fill="#DBDFE3" d="M191.219,302.322c-1.28,3.001-2.015,6.283-2.015,9.752v67.236c0,13.853,11.231,25.082,25.083,25.082h36.58
			c13.852,0,25.083-11.229,25.083-25.082v-67.236c0-3.469-0.735-6.751-2.015-9.752H191.219z"/>
		<path fill="#DBDFE3" d="M309.105,344.408c0,17.328-10.767,31.354-24.039,31.354s-24.038-14.025-24.038-31.354
			c0-17.307,10.766-31.354,24.038-31.354S309.105,327.102,309.105,344.408z M285.067,367.076c9.163,0,16.594-10.148,16.594-22.668
			c0-12.518-7.431-22.667-16.594-22.667c-9.164,0-16.594,10.149-16.594,22.667C268.474,356.928,275.904,367.076,285.067,367.076z"/>
		<g>
			
				<ellipse transform="matrix(0.6324 -0.7746 0.7746 0.6324 -185.2041 308.6242)" fill="#603913" cx="232.591" cy="349.459" rx="18.638" ry="12.019"/>
			<line fill="none" stroke="#DBDFE3" stroke-miterlimit="10" x1="220.789" y1="363.908" x2="244.366" y2="335.034"/>
		</g>
		<path opacity="0.5" fill="#FFFFFF" enable-background="new    " d="M194.432,344.826c0-6.447,5.899-11.674,13.179-11.674l0,0
			c7.279,0,13.178,5.228,13.178,11.674v36.221c0,6.449-5.899,11.676-13.178,11.676l0,0c-7.279,0-13.179-5.227-13.179-11.676V344.826
			z"/>
		<path opacity="0.5" fill="#FFFFFF" enable-background="new    " d="M194.432,318.175c0-5.483,4.446-9.93,9.929-9.93h6.499
			c5.483,0,9.929,4.446,9.929,9.93l0,0c0,5.482-4.446,9.929-9.929,9.929h-6.499C198.878,328.104,194.432,323.658,194.432,318.175
			L194.432,318.175z"/>
	</g>
</g>
    <g class="CoffeStream">
<path id="CoffeStream" clip-path="url(#clip)" d="M226.683,296.449c0,3.255,2.639,5.895,5.895,5.895l0,0c3.255,0,5.894-2.639,5.894-5.895
	v-73.211c0-3.255-2.639-5.896-5.894-5.896l0,0c-3.255,0-5.895,2.639-5.895,5.896V296.449z"/></g>
</svg>

</div>
            
          
!

CSS

            
              body {
  background-color: #C2B49A;
  overflow: hidden;
}

body,
html {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

.container {
  position: absolute;
  max-width: 100%;
  height: 600px;
}

svg {
  max-width: 100%;
  visibility: hidden;
}

            
          
!

JS

            
              var
  select = function(s) {
    return document.querySelector(s);
  },
  selectAll = function(s) {
    return document.querySelectorAll(s);
  },
   container = select('.container'),
   coffeStream = select('#CoffeStream'),
   coffeKettle = select('.CoffeKettle'),
   coffePath = select('#coffeStreamClip');

TweenMax.set(container, {
  position: 'absolute',
  top: '50%',
  left: '50%',
  xPercent: -40,
  yPercent: -50
});

TweenMax.set('svg', {visibility:"visible"});


 var tl = new TimelineMax({delay:1, repeat:-1});
 tl
 .to(coffeKettle, 1, {rotation:-50, transformOrigin:" 50%"})
 .fromTo(coffePath, 2 ,{y:-120},{y:120});




            
          
!
999px

Console