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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

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.

<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
<svg version="1.0" xmlns="" xmlns:xlink="" x="0px" y="0px"
	 viewBox="1355.4 -710 405 671" enable-background="new 1355.4 -710 405 671" xml:space="preserve">
<g id="sc">
<g id="ma">
	<g id="ma-hero">
		<rect x="1355.4" y="-627" fill="#FFFFFF" width="405" height="588"/>
		<rect x="1507.8" y="-567.7" fill="#FFFFFF" width="99" height="13"/>
		<rect x="1507.8" y="-567.7" fill="none" stroke="#CBCBC9" width="99" height="13"/>
		<rect x="1367.1" y="-533" fill="#F57D26" width="379.7" height="70"/>
			<circle fill="#FFFFFF" stroke="#CACAC7" stroke-miterlimit="10" cx="1557.1" cy="-588.6" r="12.1"/>
			<rect x="1507.5" y="-568" fill="#FFFFFF" stroke="#CACAC7" stroke-miterlimit="10" width="99.3" height="13.6"/>
		<rect x="1366.9" y="-506.2" fill="none" width="380" height="24.8"/>
		<text transform="matrix(1 0 0 1 1442.7324 -487.578)" fill="#FFFFFF" font-family="'ProximaNova-Light'" font-size="27.8498">Claimed Messages</text>
		<g id="ma-hero-message-3">
			<rect x="1355.4" y="-208" fill="#FFFFFF" width="405" height="127"/>
			<rect x="1398.4" y="-181.9" fill="none" width="233.9" height="88.7"/>
			<text transform="matrix(1 0 0 1 1398.3964 -163.3031)"><tspan x="0" y="0" fill="#302E29" font-family="'ProximaNova-Light'" font-size="27.8498">Elaine Roberts</tspan><tspan x="0" y="27.8" fill="#9E9E9C" font-family="'ProximaNova-Light'" font-size="23.1689">129 West 81st Street</tspan><tspan x="0" y="55.6" fill="#9E9E9C" font-family="'ProximaNova-Light'" font-size="23.1689">555-360-0568</tspan></text>
				<path fill="#00B5BA" d="M1714.3-144.4c0-18.4-14.9-33.3-33.3-33.3c-18.4,0-33.3,14.9-33.3,33.3c0,18.4,14.9,33.3,33.3,33.3
				<polygon fill="#FFFFFF" points="1672.4,-129 1672.4,-159.8 1695.8,-144.4 				"/>
		<g id="ma-hero-message-2">
			<rect x="1355.4" y="-335.5" fill="#FFFFFF" width="405" height="127"/>
			<rect x="1398.4" y="-309.4" fill="none" width="233.9" height="88.7"/>
			<text transform="matrix(1 0 0 1 1398.3964 -290.8031)"><tspan x="0" y="0" fill="#302E29" font-family="'ProximaNova-Light'" font-size="27.8498">Mary Jenkins</tspan><tspan x="0" y="27.8" fill="#9E9E9C" font-family="'ProximaNova-Light'" font-size="23.1689">100 East Park Ave</tspan><tspan x="0" y="55.6" fill="#9E9E9C" font-family="'ProximaNova-Light'" font-size="23.1689">555-986-9082</tspan></text>
			<g id="ma-hero-play">
				<path fill="#00B5BA" d="M1714.3-271.9c0-18.4-14.9-33.3-33.3-33.3c-18.4,0-33.3,14.9-33.3,33.3c0,18.4,14.9,33.3,33.3,33.3
				<polygon fill="#FFFFFF" points="1672.4,-256.5 1672.4,-287.3 1695.8,-271.9 				"/>
		<g id="ma-hero-message-1">
			<rect x="1355.4" y="-463" fill="#FFFFFF" width="405" height="127"/>
			<rect x="1398.4" y="-436" fill="none" width="233.9" height="88.7"/>
			<text transform="matrix(1 0 0 1 1398.3964 -417.3864)"><tspan x="0" y="0" fill="#302E29" font-family="'ProximaNova-Light'" font-size="27.8498">Jack Tripper</tspan><tspan x="0" y="27.8" fill="#9E9E9C" font-family="'ProximaNova-Light'" font-size="23.1689">2200 Colorado Ave</tspan><tspan x="0" y="55.6" fill="#9E9E9C" font-family="'ProximaNova-Light'" font-size="23.1689">555-870-5623</tspan></text>
				<path fill="#00B5BA" d="M1714.3-398.5c0-18.4-14.9-33.3-33.3-33.3c-18.4,0-33.3,14.9-33.3,33.3c0,18.4,14.9,33.3,33.3,33.3
				<polygon fill="#FFFFFF" points="1672.4,-383.1 1672.4,-413.9 1695.8,-398.5 				"/>
		<g id="ma-hero-player" opacity="0">
			<rect x="1366.9" y="-335.5" fill="#302E29" width="379.7" height="168.9"/>
			<rect id="ma-hero-progress" x="1367.1" y="-335.5" fill="#FFB500" width="249" height="168.9"/>
				<path fill="#4DB85C" d="M1537.2-250.8c0-22.2-18-40.2-40.2-40.2c-22.2,0-40.2,18-40.2,40.2c0,22.2,18,40.2,40.2,40.2
					<rect x="1500.1" y="-263.3" fill="#FFFFFF" width="9.3" height="25"/>
					<rect x="1484.4" y="-263.3" fill="#FFFFFF" width="9.3" height="25"/>
				<path fill="#F05945" d="M1656.4-250.8c0-22.2-18-40.2-40.2-40.2c-22.2,0-40.2,18-40.2,40.2c0,22.2,18,40.2,40.2,40.2
				<rect x="1603.6" y="-263.3" fill="#FFFFFF" width="25" height="25"/>
<g id="rp">
<g id="ov">
<g id="MA">
              body {
  //background-color: red;
div {
  background: hsl(0, 0%, 90%);
  padding:0 15%;  
  overflow: hidden;
  position: relative;
svg {
  width: 100%;
  max-width: 350px;
  margin:0 auto;padding:0;
text,tspan {
  font-family: ProximaNova-Regular, sans-serif;
    var maHero = new TimelineMax();
    var elasticCustom = Elastic.easeOut.config(1, 0.5);"#ma-hero-player", 0, {opacity:1,scaleY:0})
          .to("svg", 0, {y:"80%",opacity:1,z:.1, ease:elasticCustom})
          .to("svg", .8, {y:"0%",z:.1, ease:Expo.easeInOut},"start")
          .staggerTo(["#ma-hero-message-1","#ma-hero-message-2","#ma-hero-message-3"], .8,{y:-25,ease:Power2.easeInOut},.08,"start+=.05")
          .staggerTo(["#ma-hero-message-1","#ma-hero-message-2","#ma-hero-message-3"], .6,{y:0,ease:Elastic.easeOut.config(.9,.5)},.05)
          .to("#ma-hero-play", .1, {scale:.7, transformOrigin:"center center", ease:Power3.easeOut },"-=.3")
          .to("#ma-hero-play", .8, {scale:1, transformOrigin:"center center", ease:Elastic.easeOut.config(1.2, 0.4) },"-=.2")
          .to("#ma-hero-message-3", .7, {y:40, ease:elasticCustom},"showPlayer-=.3")
          .to("#ma-hero-player", .7, {scaleY:1,transformOrigin:"center top",ease:elasticCustom},"showPlayer-=.3")
          .from("#ma-hero-progress", 1.5, {scaleX:0,transformOrigin:"left center", ease:Power2.easeOut})
          .to("svg", .8, {y:"80%",opacity:1,z:.1, ease:Elastic.easeOut.config(.5,.4),delay:.2})

    document.getElementById('ma-hero').onclick = function(){

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.