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 id="container">
  <div class="box two"></div>
  <div class="box three"></div>
  <div class="box one"></div>

  <svg viewBox="0 0 1000 1000" style="enable-background:new 0 0 1000 1000;" xml:space="preserve">

<g id="Scene">
	<radialGradient id="XMLID_23_" cx="519.1739" cy="383.4783" r="550.0687" gradientUnits="userSpaceOnUse">
		<stop  offset="0" style="stop-color:#27AAE1;stop-opacity:0.5"/>
		<stop  offset="1" style="stop-color:#27AAE1"/>
	</radialGradient>
	<polygon id="XMLID_5_" style="fill:url(#XMLID_23_);" points="-2.333,0 1000,0 1000,283.126 0,288.9 	"/>
	<path id="XMLID_8_" style="fill:#469142;" d="M-2.333,451L511.29,335L1000,431.3V267.174c0,0-418.522-14.754-460,15.993h-63
		c0,0-149.754-43.167-479.333-12.732V451z"/>
	<path id="XMLID_4_" style="fill:#535650;" d="M492.5,283.167c0,0-7.75,24.958-20.625,36.583S344.667,390.667,330.667,399
		s-333,171.333-333,171.333L0,1000h1000V557.5l-405.5-207c0,0-44.5-23.417-53.917-40.917c-9.417-17.5-13.417-26.417-13.417-26.417
		H492.5z"/>
	<g id="Divider">
		<polygon id="XMLID_12_" style="fill:#DEDDDD;" points="511.01,293 509.75,293 509.98,288.9 510.98,288.93 		"/>
		<polygon id="XMLID_14_" style="fill:#DEDDDD;" points="511.1,306 509.03,306 509.23,302.33 511.07,302.33 		"/>
		<polygon id="XMLID_17_" style="fill:#DEDDDD;" points="511.2,320.67 508.21,320.67 508.41,317 511.17,317 		"/>
		<polygon id="XMLID_22_" style="fill:#DEDDDD;" points="511.29,335 507.41,335 507.63,331 511.27,331 		"/>
		<polygon id="XMLID_26_" style="fill:#DEDDDD;" points="511.38,348 506.68,348 506.92,343.67 511.35,343.67 		"/>
		<polygon id="XMLID_30_" style="fill:#DEDDDD;" points="511.5,365 505.73,365 506.14,357.67 511.45,357.67 		"/>
		<polygon id="XMLID_10_" style="fill:#DEDDDD;" points="511.66,387.83 504.46,387.83 505.25,373.7 511.56,373.7 		"/>
		<polygon id="XMLID_11_" style="fill:#DEDDDD;" points="511.82,411.74 503.12,411.74 503.97,396.52 511.72,396.52 		"/>
		<polygon id="XMLID_18_" style="fill:#DEDDDD;" points="512.12,454.13 500.76,454.13 502.03,431.3 511.96,431.3 		"/>
		<polygon id="XMLID_21_" style="fill:#DEDDDD;" points="512.5,509.57 497.66,509.57 499.3,480.22 512.29,480.22 		"/>
		<polygon id="XMLID_24_" style="fill:#DEDDDD;" points="513.25,619.35 491.53,619.35 494.75,561.74 512.85,561.74 		"/>
		<polygon id="XMLID_13_" style="fill:#DEDDDD;" points="515.87,1000.56 470.31,999.44 480.06,824.78 514.66,824.78 		"/>
	</g>
	<g id="XMLID_1_">
		<path id="XMLID_15_" style="fill:#DEDDDD;" d="M495.325,283.256c0,0-0.409,2.34-1.76,6.523c-0.681,2.088-1.589,4.643-2.859,7.561
			c-1.248,2.926-2.829,6.231-4.897,9.769c-4.136,7.031-10.111,15.232-19.114,22.345c-2.247,1.781-4.696,3.425-7.229,5.056
			c-2.555,1.623-5.183,3.302-7.901,4.96c-5.417,3.363-11.153,6.827-17.136,10.445c-23.955,14.434-52.04,31.035-82.162,48.766
			c-30.156,17.673-62.323,36.524-94.49,55.374C128.89,529.082,0.003,604.107,0.003,604.107l-4.673-8.214
			c0,0,32.547-18.179,81.368-45.446c24.39-13.671,52.845-29.62,83.333-46.709c30.457-17.142,62.945-35.426,95.433-53.711
			c32.446-18.358,64.892-36.716,95.31-53.927c30.384-17.269,58.714-33.439,82.874-47.501c6.034-3.525,11.819-6.9,17.279-10.176
			c2.746-1.619,5.374-3.243,7.938-4.816c2.564-1.597,5.014-3.182,7.23-4.917c8.929-6.946,14.986-14.974,19.037-21.975
			c4.089-7.025,6.284-13.071,7.566-17.21c0.644-2.075,1.047-3.689,1.298-4.779c0.251-1.095,0.345-1.65,0.345-1.65L495.325,283.256z"
			/>
	</g>
	<g id="XMLID_3_">
		<path id="XMLID_20_" style="fill:#DEDDDD;" d="M525.401,283.042c0,0,0.556,2.199,1.951,6.246
			c1.398,4.032,3.616,9.925,7.355,16.959c1.906,3.486,4.109,7.32,7.033,11.102c2.898,3.775,6.401,7.645,10.828,10.821
			c0.578,0.391,1.16,0.785,1.747,1.183c0.596,0.373,1.196,0.749,1.801,1.127c1.211,0.752,2.441,1.516,3.689,2.29
			c2.539,1.524,5.151,3.092,7.831,4.702c5.396,3.169,11.069,6.5,16.99,9.977c23.733,13.825,51.557,29.737,81.39,46.744
			c29.869,16.947,61.729,35.023,93.589,53.099c127.54,72.135,255.355,143.781,255.355,143.781l-5.252,9.189
			c0,0-126.624-73.76-252.966-148.004c-31.561-18.604-63.121-37.208-92.71-54.649c-29.553-17.503-57.114-33.875-80.63-48.1
			c-5.867-3.578-11.49-7.006-16.838-10.267c-2.66-1.657-5.251-3.272-7.77-4.842c-1.258-0.81-2.498-1.609-3.719-2.396
			c-0.608-0.395-1.212-0.788-1.811-1.177c-0.58-0.407-1.156-0.811-1.727-1.211c-4.6-3.41-8.123-7.431-11.038-11.339
			c-2.933-3.911-5.113-7.835-6.995-11.396c-3.686-7.181-5.835-13.152-7.188-17.242c-1.346-4.091-1.883-6.345-1.883-6.345
			L525.401,283.042z"/>
	</g>
	<path id="XMLID_6_" style="fill:#D6C493;" d="M-2.333,570.333V451c0,0,289.667-73.333,362-100.667
		c72.333-27.333,80-27.007,100-48.003S477,283.167,477,283.167h15.5c0,0-9.417,26.667-20.625,36.583s-133.01,74.67-133.01,74.67
		L218.333,458L-2.333,570.333z"/>
	<path id="XMLID_7_" style="fill:#D6C493;" d="M1000,557.5L619.997,363.516c0,0-42.278-21.477-54.289-30.516
		c-12.011-9.038-21.617-17.849-23.371-20.633c-1.754-2.784-15.171-29.201-15.171-29.201H540c0,0,26.5,40.333,89.5,58.083
		s58,21.5,115.75,28.25S1000,380.765,1000,380.765V557.5z"/>
</g>
</svg>
</div>
              
            
!

CSS

              
                body {
  background-color: #fff;
  margin: 0;
  overflow: hidden;
}

#container {
  display: flex;
  position: relative;
  height: 100vmin;
  width: 100vmin;
  background-size: cover;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  overflow: hidden;
}

.box {
  display: block;
  position: absolute;
  height: 10%;
  width: 15%;
  border-radius: 10px;
  background: url("http://pngimg.com/uploads/lamborghini/lamborghini_PNG10686.png")
    no-repeat center center;
  background-size: cover;
  z-index: 10;
  bottom: 0;
  preserve-3d: true;
}

.green {
  background: green;
}

svg {
  position: absolute;
  left: 0;
  top: 0;
}

.one{
  drop-shadow: -100px -100px #fff;
}

.two{
  filter:hue-rotate(90deg);
}

.three{
  filter:hue-rotate(200deg);
}
              
            
!

JS

              
                var duration = 1;

var tl = new TimelineMax({repeat: -1, repeatDelay: 2});

tl.fromTo('svg', duration, 
{
  scale: 4
},
{
  scale: 1,
  ease:ExpoScaleEase.config(4, 1),
  transformOrigin: '50% 30%'
}, 0)

.fromTo('.one', duration, 
{
scale: 3,
  yPercent: -200
}, 
{
  scale: 5, ease:ExpoScaleEase.config(3, 5),
  transformOrigin: '50% 50%'
}, 0)

.fromTo('.two, .three', duration, 
{
  scale: 3,
  yPercent: -200
}, {  
  yPercent: -220,
  scale: 5,
  ease:ExpoScaleEase.config(3, 5), 
  transformOrigin: '50% 50%'
}, 0)


.to('.two', duration,{
  xPercent: -150, ease:ExpoScaleEase.config(1, 4)}, 0)
.to('.three', duration,{
  xPercent: 150, ease:ExpoScaleEase.config(1, 4)}, 0)



// TweenMax.to(tl, 1, {progress: 1, repeat: -1, repeatDelay: 2, ease: SlowMo.ease.config(0.1, 0.3, false)});
              
            
!
999px

Console