HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<svg id="easeSVG" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1200">
<title>Greensock Easing Playground</title>
<defs>
<!-- ************************************************************ -->
<!-- symbols for the Alien theme -->
<!-- ************************************************************ -->
<symbol id="positionAlien">
<path d="M29.84,9.6a11.08,11.08,0,0,0-22,0A20.25,20.25,0,0,0,29.84,9.6Z" />
<path d="M30.74,10.49l-0.07.07A21.5,21.5,0,0,1,18.86,14.1,21.51,21.51,0,0,1,7,10.56L7,10.49c-4.25,1.08-7,2.73-7,4.57C0,17.71,5.58,20,13.26,20.7a11,11,0,0,0,11.19,0c7.68-.74,13.26-3,13.26-5.63C37.71,13.22,35,11.57,30.74,10.49Z" />
<path d="M18.86,14.1a21.5,21.5,0,0,0,11.82-3.54l0.07-.07-0.81-.2c0-.24-0.05-0.46-0.08-0.7a20.25,20.25,0,0,1-22,0c0,0.23-.07.46-0.08,0.69L7,10.49,7,10.56A21.51,21.51,0,0,0,18.86,14.1Z" fill="#ebf1f2"/>
<path d="M20.74,2.16A10.23,10.23,0,0,1,25.33,9a2.35,2.35,0,0,0,1.15-.19,2.64,2.64,0,0,1,1.39-.2C26.66,4.1,23,2.1,20.74,2.16Z" fill="#ebf1f2"/>
<path d="M10.77,15.58c0.58,0.39.49,1.39-.24,2.2A2.18,2.18,0,0,1,8,18.41c-0.58-.39-0.39-1.28.39-2S10.21,15.21,10.77,15.58Z" fill="#ebf1f2"/>
<path d="M26.94,15.58c-0.58.39-.49,1.39,0.24,2.2a2.18,2.18,0,0,0,2.49.62c0.58-.39.39-1.28-0.39-2S27.5,15.21,26.94,15.58Z" fill="#ebf1f2"/>
<path d="M6.2,12.69c0.2,0.38-.6,1.06-1.8,1.53s-2.32.53-2.52,0.15,0.61-1.06,1.8-1.53S6,12.31,6.2,12.69Z" fill="#ebf1f2"/>
<path d="M35.83,14.36C36,14,35.23,13.3,34,12.84s-2.32-.53-2.52-0.15,0.6,1.06,1.8,1.53S35.63,14.75,35.83,14.36Z" fill="#ebf1f2"/>
<path d="M20.49,18.51a1.54,1.54,0,0,1-1.63,1.71,1.55,1.55,0,0,1-1.65-1.71,1.84,1.84,0,0,1,1.63-1.71A1.85,1.85,0,0,1,20.49,18.51Z" fill="#ebf1f2"/>
</symbol>
<symbol id="scaleAlien">
<g>
<path d="M4.38,72.22c0,2.68,3.38,5,7.38,5A12.08,12.08,0,0,0,23.37,69.5c0.88-2.37-.56-5,1.75-9.76A32.88,32.88,0,0,1,29.91,53a58.68,58.68,0,0,1-14-2.1c-2.13,2.74-4.45,6.39-5.56,7.85C7.62,62.42,4.38,70.34,4.38,72.22Z" />
<path d="M96.12,32.09a3.68,3.68,0,0,0-3.36,2.21H86.87V29.34a1.47,1.47,0,0,0-2.94,0v4.95h-4V26.06a1.47,1.47,0,1,0-2.94,0v8.22H65.53a8.72,8.72,0,0,1,0,2.94H77v8.22a1.47,1.47,0,1,0,2.94,0V37.23h4v5a1.47,1.47,0,0,0,2.94,0v-5h5.88A3.67,3.67,0,1,0,96.12,32.09Z" />
<path d="M48,51.08c5.16,8.37-7.72,16.87-19.15,12.39,0.54-3.33,2.6-6.68,4.69-9.73,0.44,3.35,4,6.47,7.09,7.82a1.47,1.47,0,0,0,1.82-2.15c-1.12-1.71-2.69-4.7-2.69-6,0-.12.06-0.43,0.09-0.56a1.35,1.35,0,0,0,0-.26c-2,.2-3.14.32-3.79,0.35-0.39,0-3.61.14-4.2,0.11C22.24,63.7,26.36,65.66,24.75,70a13.58,13.58,0,0,1-13,8.63c-4.89,0-8.85-2.87-8.85-6.42,0-2.3,3.41-10.53,6.3-14.33,1-1.34,3.17-4.7,5.24-7.43-0.5-.16-1-0.32-1.47-0.49-1.26,1.7-4.71,6.73-4.94,7-2.9,3.81-6.6,12.35-6.6,15.22,0,4.35,4.63,7.9,10.32,7.9a15,15,0,0,0,14.37-9.59,13.15,13.15,0,0,0,.52-4.79c13.78,6.41,30.13-4.38,24.19-15.54C48.93,50.85,46.09,51.58,48,51.08Z" />
<path d="M32.2,19.88c-17.67,0-32,7.11-32,15.87,0,5.38,5.44,10.12,13.71,13,20.26,7,47.91.42,50.12-11.54C65.78,27.74,50.7,19.88,32.2,19.88Z" />
<circle cx="25.92" cy="35.76" r="3.67" fill="#fff"/>
<circle cx="37.11" cy="35.76" r="3.67" fill="#fff"/>
<circle cx="48.31" cy="35.76" r="3.67" fill="#fff"/>
<path d="M25.92,33.56a2.2,2.2,0,1,0,2.2,2.2A2.2,2.2,0,0,0,25.92,33.56Zm0,2.93a0.73,0.73,0,1,1,.72-0.73A0.73,0.73,0,0,1,25.92,36.48Z" />
<circle cx="14.25" cy="35.76" r="3.67" fill="#fff"/>
<path d="M14.25,33.56a2.2,2.2,0,1,0,2.2,2.2A2.2,2.2,0,0,0,14.25,33.56Zm0,2.93A0.73,0.73,0,1,1,15,35.76,0.73,0.73,0,0,1,14.25,36.48Z" />
<path d="M37.11,38a2.2,2.2,0,1,0-2.2-2.2A2.2,2.2,0,0,0,37.11,38Zm0-2.93a0.73,0.73,0,1,1-.73.73A0.73,0.73,0,0,1,37.11,35Z" />
<path d="M48.31,33.56a2.2,2.2,0,1,0,2.19,2.2A2.2,2.2,0,0,0,48.31,33.56Zm0,2.93A0.73,0.73,0,1,1,49,35.76,0.73,0.73,0,0,1,48.31,36.48Z" />
</g>
</symbol>
<symbol id="rotationAlien">
<g>
<path d="M89.68,31.68C85.21,8.64,67.82,0,50,0S14.79,8.64,10.32,31.68a34.2,34.2,0,0,0,2.58,18.21C15.74,68,33.09,92.27,43.45,98.1A14,14,0,0,0,50,100a14,14,0,0,0,6.55-1.89C66.91,92.27,84.26,68,87.09,49.9A34.19,34.19,0,0,0,89.68,31.68Z" />
<g>
<path d="M45.41,61.84C43.5,67.75,29,63.4,23.85,61.45S15,54.86,16.93,49s7.66-9.11,12.85-7.16S47.31,55.93,45.41,61.84Z" fill="#ebf1f2"/>
<path d="M54.59,61.84C56.5,67.75,71,63.4,76.15,61.45S85,54.86,83.07,49s-7.66-9.11-12.85-7.16S52.69,55.93,54.59,61.84Z" fill="#ebf1f2"/>
</g>
<path d="M50,87.89A11.55,11.55,0,0,1,45,86.77a1,1,0,0,1-.45-1.27A0.94,0.94,0,0,1,45.85,85a9.62,9.62,0,0,0,8.29,0,0.94,0.94,0,0,1,1.25.46,1,1,0,0,1-.45,1.27A11.55,11.55,0,0,1,50,87.89Z" fill="#ebf1f2"/>
<g>
<path d="M48.13,71.36c-0.58-.29-1.44.37-1.91,1.47s-0.39,2.24.19,2.53,1.44-.37,1.91-1.47S48.71,71.65,48.13,71.36Z" fill="#ebf1f2"/>
<path d="M53.78,72.83c-0.47-1.1-1.33-1.76-1.91-1.47s-0.67,1.42-.19,2.53,1.33,1.76,1.91,1.47S54.26,73.94,53.78,72.83Z" fill="#ebf1f2"/>
</g>
</g>
</symbol>
<!-- ************************************************************ -->
<!-- symbols for the Dog theme -->
<!-- ************************************************************ -->
<symbol id="positionDog">
<g>
<path d="M31,21.07a0.1,0.1,0,0,1-.06.12l-0.63.22a0.12,0.12,0,0,1-.14-0.05L29.36,20l0.71-1.51Z" />
<g>
<path d="M9.45,14.38a3.44,3.44,0,0,0,.27.51l1.34,2L7.95,21.45a0.52,0.52,0,0,1-.71.14l-1-.64a0.44,0.44,0,0,1-.14-0.58Z" />
<path d="M24.43,18.64l1,2.37a0.1,0.1,0,0,1,0,.13l-0.61.27a0.12,0.12,0,0,1-.14,0L23.53,19.7A2.77,2.77,0,0,0,24.43,18.64Z" />
<path d="M32.26,13.35a0.15,0.15,0,0,1-.12.11l-1.23.18a0.09,0.09,0,0,0-.07.05L30.67,14l0.24,0.14a0.1,0.1,0,0,1,0,.13L30.32,15.4a0.1,0.1,0,0,1-.13,0L30,15.36l-0.2.41a0.12,0.12,0,0,0,0,.09l0.29,0.88a0.24,0.24,0,0,1,0,.18l-0.18.38-0.15.31-0.2.42L29,19.3,28.27,20.8l-0.36.75a0.1,0.1,0,0,1-.13,0l-0.6-.28a0.12,0.12,0,0,1-.06-0.13l0.75-2.87H23.73a2.42,2.42,0,0,1-.6.81,3,3,0,0,1-2.13.74H20.94a0.06,0.06,0,0,0-.07,0l-0.45,1.78a0.1,0.1,0,0,1-.12.07l-0.88-.22a0.1,0.1,0,0,1-.07-0.12L20,18.88a0.14,0.14,0,0,1,.13-0.1,2.22,2.22,0,0,0,1.42-1h0V16.54a0.38,0.38,0,0,1,0-.18L22.29,15a4.3,4.3,0,0,1-1.09-1.74A0.25,0.25,0,0,1,21.34,13a0.29,0.29,0,0,1,.35.14,3.14,3.14,0,0,0,1,1.18l0.07,0h4.4a0.09,0.09,0,0,0,.08,0l0.25-.36-0.28-.16a0.1,0.1,0,0,1,0-.13l0.63-1.09a0.1,0.1,0,0,1,.13,0l0.37,0.22L28.79,12l-0.28-.42a1,1,0,0,1-.13-0.78,0.3,0.3,0,0,1,.46-0.18l1,0.68h1a0.17,0.17,0,0,1,.14.08l0.28,0.49a0.09,0.09,0,0,0,.07,0L32.56,12a0.08,0.08,0,0,1,.07.1Z" />
<path d="M10.7,4.88a0.92,0.92,0,0,1,.7.06L17.31,8a0.49,0.49,0,0,1,.21.65l-0.46.92a0.49,0.49,0,0,1-.64.23L12.9,8.27v4.31L17,20.39a0.44,0.44,0,0,1-.14.56l-0.43.3-0.17.12-0.31.22-0.08,0a0.44,0.44,0,0,1-.53-0.16l-3.66-5.4-1.13-1.66a3.5,3.5,0,0,1-.6-1.94v-3l-0.77,1-1,1.39a0.55,0.55,0,0,1-.71.15l-1-.58a0.55,0.55,0,0,1-.17-0.8l3.93-5.32A0.92,0.92,0,0,1,10.7,4.88Z" />
<circle cx="11.06" cy="2.21" r="1.96"/>
<rect x="22.09" y="6.61" width="1.08" height="8.92" rx="0.25" ry="0.25" transform="translate(3.78 27.78) rotate(-67.61)" fill="#fff"/>
</g>
</g>
</symbol>
<symbol id="scaleDog">
<path d="M10.39,55.8a1.42,1.42,0,0,0,2,.22l5.78-4.44V94.85a1.37,1.37,0,0,0,1.37,1.37H38.18v-18a11.82,11.82,0,0,1,23.65,0v18H80.5a1.37,1.37,0,0,0,1.37-1.37V51.58L87.65,56a1.42,1.42,0,0,0,2-.22L99.7,43.54a1.32,1.32,0,0,0-.22-1.89L83.22,29.16l-32-24.54L50.2,3.81a0.12,0.12,0,0,0-.17,0,0,0,0,0,1-.07,0,0.12,0.12,0,0,0-.17,0l-1.06.81-32,24.54L0.52,41.65A1.32,1.32,0,0,0,.3,43.54Z" />
<path d="M62.77,32.08a3.77,3.77,0,0,1-7.53,0s0-.09,0-0.14H44.75s0,0.09,0,.14a3.77,3.77,0,1,1-6.35-2.74,3.76,3.76,0,1,1,6.35-2.73s0,0.09,0,.14H55.25s0-.09,0-0.14a3.77,3.77,0,1,1,6.35,2.74A3.75,3.75,0,0,1,62.77,32.08Z" fill="#fff"/>
</symbol>
<symbol id="rotationDog">
<g>
<path d="M51,79.7a1.13,1.13,0,0,0-2.08,0c-1,1.78-2.1,4.15-3.32,5a4.93,4.93,0,0,0,4.28,3,5,5,0,0,0,4.32-3.06C53,83.71,51.9,81.43,51,79.7Z" fill="#8c383e"/>
<path d="M75.68,18.58a37.28,37.28,0,0,0-7.44-4.69,9.71,9.71,0,0,0-5.32-1.59H37.19a9.7,9.7,0,0,0-5,1.41,37.22,37.22,0,0,0-7.84,4.87A74.45,74.45,0,0,0,17.38,25C2.42,40.7-4.14,58.72,2.72,65.27c2.92,2.78,7.8,3,13.6,1.2a108.88,108.88,0,0,1,2.85-16.22,1.72,1.72,0,1,1,3.33.87,106.54,106.54,0,0,0-2.81,16.25c0,0.33,0,.63,0,0.91A17.87,17.87,0,0,0,37.55,86.13c3.7,0,7.14-5.89,10-10.06a3,3,0,0,1,4.92,0c2.85,4.17,6.28,10.06,10,10.06A17.86,17.86,0,0,0,80.29,69s0-.05,0-0.08a109.16,109.16,0,0,0-3-17.81,1.72,1.72,0,0,1,3.33-.87A108.8,108.8,0,0,1,83.49,66.4c5.88,1.9,10.84,1.68,13.79-1.14,6.86-6.54.3-24.57-14.66-40.26A74.27,74.27,0,0,0,75.68,18.58Z" />
<circle cx="39.66" cy="45.85" r="3.9" fill="#fff"/>
<path d="M50.17,69.22s-8.35-5-8.35-7.87,3.74-5.14,8.35-5.14,8.35,2.3,8.35,5.14S50.17,69.22,50.17,69.22Z" fill="#fff"/>
<circle cx="60.68" cy="45.85" r="3.9" fill="#fff"/>
</g>
</symbol>
<!-- ************************************************************ -->
<!-- symbols for the Cinema theme -->
<!-- ************************************************************ -->
<symbol id="positionCinema">
<path d="M8,15.62l-1.63-.29v2.81L8,17.86V15.62H8Zm23.87-2.17h1.42V20H31.84L27.37,18.6V14.88l4.47-1.43h0ZM16,4.9a7.09,7.09,0,1,1,10.43,9v6.3a0.79,0.79,0,0,1-.78.78H9.58a0.79,0.79,0,0,1-.78-0.78v-6.3a5.77,5.77,0,1,1,7.2-9h0Zm6.39,1A2.17,2.17,0,1,0,24.55,8a2.17,2.17,0,0,0-2.17-2.17h0ZM12.11,7.36a1.76,1.76,0,1,0,1.76,1.76A1.76,1.76,0,0,0,12.11,7.36Z" fill-rule="evenodd"/>
<circle cx="12.09" cy="9.12" r="1.93" fill="#f9f9f9"/>
<circle cx="22.38" cy="8.03" r="2.29" fill="#f9f9f9"/>
</symbol>
<symbol id="scaleCinema">
<g>
<path d="M95.17,43H91.41V92.56c0,3.64-3.31,6.62-7.35,6.62H18.44c-4,0-7.35-3-7.35-6.62V43H7.33V30.58H95.1c0,4.13.07,8.2,0.07,12.38h0Z" fill-rule="evenodd"/>
<polygon points="16.24 42.54 28.87 42.54 36.1 34.19 23.47 34.19 16.24 42.54 16.24 42.54" fill="#fff" fill-rule="evenodd"/>
<polygon points="48.73 34.19 41.5 42.54 54.14 42.54 61.37 34.19 48.73 34.19 48.73 34.19" fill="#fff" fill-rule="evenodd"/>
<polygon points="74 34.19 66.77 42.54 79.4 42.54 86.63 34.19 74 34.19 74 34.19" fill="#fff" fill-rule="evenodd"/>
<polygon points="19.95 50.71 19.95 62.25 82.55 62.25 82.55 50.71 19.95 50.71 19.95 50.71" fill="#fff" fill-rule="evenodd"/>
<polygon points="19.95 71.01 19.95 74.37 82.55 74.37 82.55 71.01 19.95 71.01 19.95 71.01" fill="#fff" fill-rule="evenodd"/>
<polygon points="19.95 82.32 19.95 85.68 36.96 85.68 36.96 92.87 40.3 92.87 40.3 85.68 62.2 85.68 62.2 92.87 65.54 92.87 65.54 85.68 82.55 85.68 82.55 82.32 19.95 82.32" fill="#fff" fill-rule="evenodd"/>
<polygon points="4.83 18.19 90.86 0.81 94.01 16.38 7.98 33.76 4.83 18.19 4.83 18.19" fill-rule="evenodd"/>
<polygon points="35.45 24.58 26.27 17.5 13.9 20 23.07 27.08 35.45 24.58 35.45 24.58" fill="#fff" fill-rule="evenodd"/>
<polygon points="84.94 14.58 75.76 7.5 63.39 10 72.56 17.08 84.94 14.58 84.94 14.58" fill="#fff" fill-rule="evenodd"/>
<polygon points="60.19 19.58 51.02 12.5 38.65 15 47.82 22.08 60.19 19.58 60.19 19.58" fill="#fff" fill-rule="evenodd"/>
<circle cx="11.04" cy="24.72" r="1.95" transform="translate(-4.68 2.68) rotate(-11.42)" fill="#fff"/>
</g>
</symbol>
<symbol id="rotationCinema">
<path d="M50,0A50,50,0,1,1,0,50,50,50,0,0,1,50,0h0ZM20.6,80.28A11.78,11.78,0,1,1,37.27,80a11.78,11.78,0,0,1-16.66.25h0Zm51.12,5.9a11.78,11.78,0,1,1,4-16.17,11.78,11.78,0,0,1-4,16.17h0ZM91.35,41.55a11.78,11.78,0,1,1-13.9-9.19,11.78,11.78,0,0,1,13.9,9.19h0ZM55.59,8.17A11.78,11.78,0,1,1,42.35,18.29,11.79,11.79,0,0,1,55.59,8.17h0ZM12,31.6a11.78,11.78,0,1,1,5.47,15.74A11.79,11.79,0,0,1,12,31.6h0Z" fill-rule="evenodd"/>
<path d="M37.89,54.06A3,3,0,1,1,42,53.4a3,3,0,0,1-4.14.65h0Z" fill="#fff" fill-rule="evenodd"/>
<path d="M50.67,62.75a3,3,0,1,1,.47-4.17,3,3,0,0,1-.47,4.17h0Z" fill="#fff" fill-rule="evenodd"/>
<path d="M62.15,53.78A3,3,0,1,1,58.4,51.9a3,3,0,0,1,3.75,1.88h0Z" fill="#fff" fill-rule="evenodd"/>
<path d="M57.36,39.65a3,3,0,1,1-3,3,3,3,0,0,1,3-3h0Z" fill="#fff" fill-rule="evenodd"/>
<path d="M41.89,40.19A3,3,0,1,1,44,43.82a3,3,0,0,1-2.09-3.63h0Z" fill="#fff" fill-rule="evenodd"/>
<path d="M48.82,45.71a4.48,4.48,0,1,0,5.48,3.16,4.48,4.48,0,0,0-5.48-3.16h0Z" fill="#fff" fill-rule="evenodd"/>
</symbol>
<!-- ************************************************************ -->
<!-- symbols for the Basic theme -->
<!-- ************************************************************ -->
<symbol id="positionBasic">
<rect width="40" height="24" rx="12" ry="12"/>
</symbol>
<symbol id="scaleBasic">
<circle r="50" cx="50" cy="50"/>
</symbol>
<symbol id="rotationBasic">
<rect width="100" height="100" rx="4" ry="4"/>
</symbol>
<!-- symbol for the capsule channels in the position area-->
<symbol id="channel">
<rect width="550" height="30" rx="15" ry="15" fill="#2d2d2d" stroke="#444" stroke-miterlimit="10" stroke-width="2"/>
</symbol>
<!-- a simple mask for the configurable position eases so they don't fly into view in zoom mode-->
<mask id="containMask">
<rect width="600" height="400" x="0" y="0" fill="#fff" />
</mask>
</defs>
<rect id="svgBackground" width="1800" height="1200" fill="#403e3c"/>
<g class="positionEaseMaster">
<g class="easeGroup">
<text transform="translate(30 87)" ></text>
<use xlink:href="#channel" x="25" y="95"/>
<g class="animator animPosition">
<use xlink:href="#positionBasic" x="30" y="98" class="basic"/>
<use xlink:href="#positionAlien" x="31" y="98" class="alien"/>
<use xlink:href="#positionDog" x="31" y="98" class="dogs"/>
<use xlink:href="#positionCinema" x="31" y="98" class="cinema"/>
</g>
</g>
<g class="easeGroup" transform="translate(0 64)">
<text transform="translate(30 87)" ></text>
<use xlink:href="#channel" x="25" y="95"/>
<g class="animator animPosition">
<use xlink:href="#positionBasic" x="30" y="98" class="basic"/>
<use xlink:href="#positionAlien" x="31" y="98" class="alien"/>
<use xlink:href="#positionDog" x="31" y="98" class="dogs"/>
<use xlink:href="#positionCinema" x="31" y="98" class="cinema"/>
</g>
</g>
<g class="easeGroup" transform="translate(0 128)">
<text transform="translate(30 87)" ></text>
<use xlink:href="#channel" x="25" y="95"/>
<g class="animator animPosition">
<use xlink:href="#positionBasic" x="30" y="98" class="basic"/>
<use xlink:href="#positionAlien" x="31" y="98" class="alien"/>
<use xlink:href="#positionDog" x="31" y="98" class="dogs"/>
<use xlink:href="#positionCinema" x="31" y="98" class="cinema"/>
</g>
</g>
<g class="easeGroup" transform="translate(0 192)">
<text transform="translate(30 87)" ></text>
<use xlink:href="#channel" x="25" y="95"/>
<g class="animator animPosition">
<use xlink:href="#positionBasic" x="30" y="98" class="basic"/>
<use xlink:href="#positionAlien" x="31" y="98" class="alien"/>
<use xlink:href="#positionDog" x="31" y="98" class="dogs"/>
<use xlink:href="#positionCinema" x="31" y="98" class="cinema"/>
</g>
</g>
<g class="easeGroup" transform="translate(0 256)">
<text transform="translate(30 87)" ></text>
<use xlink:href="#channel" x="25" y="95"/>
<g class="animator animPosition">
<use xlink:href="#positionBasic" x="30" y="98" class="basic"/>
<use xlink:href="#positionAlien" x="31" y="98" class="alien"/>
<use xlink:href="#positionDog" x="31" y="98" class="dogs"/>
<use xlink:href="#positionCinema" x="31" y="98" class="cinema"/>
</g>
</g>
</g>
<g class="positionEaseMaster" transform="translate(600)">
<g class="easeGroup">
<text transform="translate(30 87)" ></text>
<use xlink:href="#channel" x="25" y="95"/>
<g class="animator animPosition">
<use xlink:href="#positionBasic" x="30" y="98" class="basic"/>
<use xlink:href="#positionAlien" x="31" y="98" class="alien"/>
<use xlink:href="#positionDog" x="31" y="98" class="dogs"/>
<use xlink:href="#positionCinema" x="31" y="98" class="cinema"/>
</g>
</g>
<g class="easeGroup" transform="translate(0 64)">
<text transform="translate(30 87)" ></text>
<use xlink:href="#channel" x="25" y="95"/>
<g class="animator animPosition">
<use xlink:href="#positionBasic" x="30" y="98" class="basic"/>
<use xlink:href="#positionAlien" x="31" y="98" class="alien"/>
<use xlink:href="#positionDog" x="31" y="98" class="dogs"/>
<use xlink:href="#positionCinema" x="31" y="98" class="cinema"/>
</g>
</g>
<g class="easeGroup" transform="translate(0 128)">
<text transform="translate(30 87)" ></text>
<use xlink:href="#channel" x="25" y="95"/>
<g class="animator animPosition">
<use xlink:href="#positionBasic" x="30" y="98" class="basic"/>
<use xlink:href="#positionAlien" x="31" y="98" class="alien"/>
<use xlink:href="#positionDog" x="31" y="98" class="dogs"/>
<use xlink:href="#positionCinema" x="31" y="98" class="cinema"/>
</g>
</g>
<g class="easeGroup" transform="translate(0 192)">
<text transform="translate(30 87)" ></text>
<use xlink:href="#channel" x="25" y="95"/>
<g class="animator animPosition">
<use xlink:href="#positionBasic" x="30" y="98" class="basic"/>
<use xlink:href="#positionAlien" x="31" y="98" class="alien"/>
<use xlink:href="#positionDog" x="31" y="98" class="dogs"/>
<use xlink:href="#positionCinema" x="31" y="98" class="cinema"/>
</g>
</g>
<g class="easeGroup" transform="translate(0 256)">
<text transform="translate(30 87)" ></text>
<use xlink:href="#channel" x="25" y="95"/>
<g class="animator animPosition">
<use xlink:href="#positionBasic" x="30" y="98" class="basic"/>
<use xlink:href="#positionAlien" x="31" y="98" class="alien"/>
<use xlink:href="#positionDog" x="31" y="98" class="dogs"/>
<use xlink:href="#positionCinema" x="31" y="98" class="cinema"/>
</g>
</g>
</g>
<g class="positionEaseMaster" mask="url(#containMask)" transform="translate(1200)">
<g class="easeGroup" >
<text transform="translate(30 87)" ></text>
<use xlink:href="#channel" x="25" y="95"/>
<g class="animator animPosition">
<use xlink:href="#positionBasic" x="30" y="98" class="basic"/>
<use xlink:href="#positionAlien" x="31" y="98" class="alien"/>
<use xlink:href="#positionDog" x="31" y="98" class="dogs"/>
<use xlink:href="#positionCinema" x="31" y="98" class="cinema"/>
</g>
</g>
<g class="easeGroup" transform="translate(0 64)">
<text transform="translate(30 87)" ></text>
<use xlink:href="#channel" x="25" y="95"/>
<g class="animator animPosition" >
<use xlink:href="#positionBasic" x="30" y="98" class="basic"/>
<use xlink:href="#positionAlien" x="31" y="98" class="alien"/>
<use xlink:href="#positionDog" x="31" y="98" class="dogs"/>
<use xlink:href="#positionCinema" x="31" y="98" class="cinema"/>
</g>
</g>
<g class="easeGroup" transform="translate(0 128)">
<text transform="translate(30 87)" ></text>
<use xlink:href="#channel" x="25" y="95"/>
<g class="animator animSpecialPosition">
<use xlink:href="#positionBasic" x="30" y="98" class="basic"/>
<use xlink:href="#positionAlien" x="31" y="98" class="alien"/>
<use xlink:href="#positionDog" x="31" y="98" class="dogs"/>
<use xlink:href="#positionCinema" x="31" y="98" class="cinema"/>
</g>
</g>
<g class="easeGroup" transform="translate(0 192)">
<text transform="translate(30 87)" ></text>
<use xlink:href="#channel" x="25" y="95"/>
<g class="animator animSpecialPosition">
<use xlink:href="#positionBasic" x="30" y="98" class="basic"/>
<use xlink:href="#positionAlien" x="31" y="98" class="alien"/>
<use xlink:href="#positionDog" x="31" y="98" class="dogs"/>
<use xlink:href="#positionCinema" x="31" y="98" class="cinema"/>
</g>
</g>
<g class="easeGroup" transform="translate(0 256)">
<text transform="translate(30 87)" ></text>
<use xlink:href="#channel" x="25" y="95"/>
<g class="animator animSpecialPosition">
<use xlink:href="#positionBasic" x="30" y="98" class="basic"/>
<use xlink:href="#positionAlien" x="31" y="98" class="alien"/>
<use xlink:href="#positionDog" x="31" y="98" class="dogs"/>
<use xlink:href="#positionCinema" x="31" y="98" class="cinema"/>
</g>
</g>
</g>
<g class="scaleMaster">
<g class="easeGroup" >
<text transform="translate(36.19 494.28)" ></text>
<g class="animator animScale">
<use xlink:href="#scaleBasic" x="50" y="510" class="basic"/>
<use xlink:href="#scaleAlien" x="50" y="510" class="alien"/>
<use xlink:href="#scaleCinema" x="50" y="510" class="cinema"/>
<use xlink:href="#scaleDog" x="50" y="510" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(239.05 494.28)" ></text>
<g class="animator animScale">
<use xlink:href="#scaleBasic" x="250" y="510" class="basic"/>
<use xlink:href="#scaleAlien" x="250" y="510" class="alien"/>
<use xlink:href="#scaleCinema" x="250" y="510" class="cinema"/>
<use xlink:href="#scaleDog" x="250" y="510" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(437.62 494.28)" ></text>
<g class="animator animScale">
<use xlink:href="#scaleBasic" x="450" y="510" class="basic"/>
<use xlink:href="#scaleAlien" x="450" y="510" class="alien"/>
<use xlink:href="#scaleCinema" x="450" y="510" class="cinema"/>
<use xlink:href="#scaleDog" x="450" y="510" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(137.74 658.97)" ></text>
<g class="animator animScale">
<use xlink:href="#scaleBasic" x="150" y="680" class="basic"/>
<use xlink:href="#scaleAlien" x="150" y="680" class="alien"/>
<use xlink:href="#scaleCinema" x="150" y="680" class="cinema"/>
<use xlink:href="#scaleDog" x="150" y="680" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(312.9 658.97)" ></text>
<g class="animator animScale">
<use xlink:href="#scaleBasic" x="350" y="680" class="basic"/>
<use xlink:href="#scaleAlien" x="350" y="680" class="alien"/>
<use xlink:href="#scaleCinema" x="350" y="680" class="cinema"/>
<use xlink:href="#scaleDog" x="350" y="680" class="dogs"/>
</g>
</g>
</g>
<g class="scaleMaster" transform="translate(600 0)">
<g class="easeGroup" >
<text transform="translate(84 494.28)" ></text>
<g class="animator animScale">
<use xlink:href="#scaleBasic" x="50" y="510" class="basic"/>
<use xlink:href="#scaleAlien" x="50" y="510" class="alien"/>
<use xlink:href="#scaleCinema" x="50" y="510" class="cinema"/>
<use xlink:href="#scaleDog" x="50" y="510" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(289 494.28)" ></text>
<g class="animator animScale">
<use xlink:href="#scaleBasic" x="250" y="510" class="basic"/>
<use xlink:href="#scaleAlien" x="250" y="510" class="alien"/>
<use xlink:href="#scaleCinema" x="250" y="510" class="cinema"/>
<use xlink:href="#scaleDog" x="250" y="510" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(488 494.28)" ></text>
<g class="animator animScale">
<use xlink:href="#scaleBasic" x="450" y="510" class="basic"/>
<use xlink:href="#scaleAlien" x="450" y="510" class="alien"/>
<use xlink:href="#scaleCinema" x="450" y="510" class="cinema"/>
<use xlink:href="#scaleDog" x="450" y="510" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(189 658.97)" ></text>
<g class="animator animScale">
<use xlink:href="#scaleBasic" x="150" y="680" class="basic"/>
<use xlink:href="#scaleAlien" x="150" y="680" class="alien"/>
<use xlink:href="#scaleCinema" x="150" y="680" class="cinema"/>
<use xlink:href="#scaleDog" x="150" y="680" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(381 658.97)" ></text>
<g class="animator animScale">
<use xlink:href="#scaleBasic" x="350" y="680" class="basic"/>
<use xlink:href="#scaleAlien" x="350" y="680" class="alien"/>
<use xlink:href="#scaleCinema" x="350" y="680" class="cinema"/>
<use xlink:href="#scaleDog" x="350" y="680" class="dogs"/>
</g>
</g>
</g>
<g class="scaleMaster" transform="translate(1200 0)">
<g class="easeGroup" >
<text transform="translate(87 494.28)" ></text>
<g class="animator animScale">
<use xlink:href="#scaleBasic" x="50" y="510" class="basic"/>
<use xlink:href="#scaleAlien" x="50" y="510" class="alien"/>
<use xlink:href="#scaleCinema" x="50" y="510" class="cinema"/>
<use xlink:href="#scaleDog" x="50" y="510" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(283.05 494.28)" ></text>
<g class="animator animScale">
<use xlink:href="#scaleBasic" x="250" y="510" class="basic"/>
<use xlink:href="#scaleAlien" x="250" y="510" class="alien"/>
<use xlink:href="#scaleCinema" x="250" y="510" class="cinema"/>
<use xlink:href="#scaleDog" x="250" y="510" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(478 494.28)" ></text>
<g class="animator animSpecialScale">
<use xlink:href="#scaleBasic" x="450" y="510" class="basic"/>
<use xlink:href="#scaleAlien" x="450" y="510" class="alien"/>
<use xlink:href="#scaleCinema" x="450" y="510" class="cinema"/>
<use xlink:href="#scaleDog" x="450" y="510" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(179 658.97)" ></text>
<g class="animator animSpecialScale">
<use xlink:href="#scaleBasic" x="150" y="680" class="basic"/>
<use xlink:href="#scaleAlien" x="150" y="680" class="alien"/>
<use xlink:href="#scaleCinema" x="150" y="680" class="cinema"/>
<use xlink:href="#scaleDog" x="150" y="680" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(384 658.97)" ></text>
<g class="animator animSpecialScale">
<use xlink:href="#scaleBasic" x="350" y="680" class="basic"/>
<use xlink:href="#scaleAlien" x="350" y="680" class="alien"/>
<use xlink:href="#scaleCinema" x="350" y="680" class="cinema"/>
<use xlink:href="#scaleDog" x="350" y="680" class="dogs"/>
</g>
</g>
</g>
<g class="rotationMaster">
<g class="easeGroup" >
<text transform="translate(36.19 894.28)" ></text>
<g class="animator animRotation">
<use xlink:href="#rotationBasic" x="50" y="910" class="basic"/>
<use xlink:href="#rotationAlien" x="50" y="910" class="alien"/>
<use xlink:href="#rotationCinema" x="50" y="910" class="cinema"/>
<use xlink:href="#rotationDog" x="50" y="910" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(239.05 894.28)" ></text>
<g class="animator animRotation">
<use xlink:href="#rotationBasic" x="250" y="910" class="basic"/>
<use xlink:href="#rotationAlien" x="250" y="910" class="alien"/>
<use xlink:href="#rotationCinema" x="250" y="910" class="cinema"/>
<use xlink:href="#rotationDog" x="250" y="910" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(437.62 894.28)" ></text>
<g class="animator animRotation">
<use xlink:href="#rotationBasic" x="450" y="910" class="basic"/>
<use xlink:href="#rotationAlien" x="450" y="910" class="alien"/>
<use xlink:href="#rotationCinema" x="450" y="910" class="cinema"/>
<use xlink:href="#rotationDog" x="450" y="910" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(137.74 1058.97)" ></text>
<g class="animator animRotation">
<use xlink:href="#rotationBasic" x="150" y="1080" class="basic"/>
<use xlink:href="#rotationAlien" x="150" y="1080" class="alien"/>
<use xlink:href="#rotationCinema" x="150" y="1080" class="cinema"/>
<use xlink:href="#rotationDog" x="150" y="1080" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(312.9 1058.97)" ></text>
<g class="animator animRotation">
<use xlink:href="#rotationBasic" x="350" y="1080" class="basic"/>
<use xlink:href="#rotationAlien" x="350" y="1080" class="alien"/>
<use xlink:href="#rotationCinema" x="350" y="1080" class="cinema"/>
<use xlink:href="#rotationDog" x="350" y="1080" class="dogs"/>
</g>
</g>
</g>
<g class="rotationMaster" transform="translate(600 0)">
<g class="easeGroup" >
<text transform="translate(84 894.28)" ></text>
<g class="animator animRotation">
<use xlink:href="#rotationBasic" x="50" y="910" class="basic"/>
<use xlink:href="#rotationAlien" x="50" y="910" class="alien"/>
<use xlink:href="#rotationCinema" x="50" y="910" class="cinema"/>
<use xlink:href="#rotationDog" x="50" y="910" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(289 894.28)" ></text>
<g class="animator animRotation">
<use xlink:href="#rotationBasic" x="250" y="910" class="basic"/>
<use xlink:href="#rotationAlien" x="250" y="910" class="alien"/>
<use xlink:href="#rotationCinema" x="250" y="910" class="cinema"/>
<use xlink:href="#rotationDog" x="250" y="910" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(488 894.28)" ></text>
<g class="animator animRotation">
<use xlink:href="#rotationBasic" x="450" y="910" class="basic"/>
<use xlink:href="#rotationAlien" x="450" y="910" class="alien"/>
<use xlink:href="#rotationCinema" x="450" y="910" class="cinema"/>
<use xlink:href="#rotationDog" x="450" y="910" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(189 1058.97)" ></text>
<g class="animator animRotation">
<use xlink:href="#rotationBasic" x="150" y="1080" class="basic"/>
<use xlink:href="#rotationAlien" x="150" y="1080" class="alien"/>
<use xlink:href="#rotationCinema" x="150" y="1080" class="cinema"/>
<use xlink:href="#rotationDog" x="150" y="1080" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(381 1058.97)" ></text>
<g class="animator animRotation">
<use xlink:href="#rotationBasic" x="350" y="1080" class="basic"/>
<use xlink:href="#rotationAlien" x="350" y="1080" class="alien"/>
<use xlink:href="#rotationCinema" x="350" y="1080" class="cinema"/>
<use xlink:href="#rotationDog" x="350" y="1080" class="dogs"/>
</g>
</g>
</g>
<g class="rotationMaster" transform="translate(1200 0)">
<g class="easeGroup" >
<text transform="translate(87 894.28)" ></text>
<g class="animator animRotation">
<use xlink:href="#rotationBasic" x="50" y="910" class="basic"/>
<use xlink:href="#rotationAlien" x="50" y="910" class="alien"/>
<use xlink:href="#rotationCinema" x="50" y="910" class="cinema"/>
<use xlink:href="#rotationDog" x="50" y="910" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(283 894.28)" ></text>
<g class="animator animRotation">
<use xlink:href="#rotationBasic" x="250" y="910" class="basic"/>
<use xlink:href="#rotationAlien" x="250" y="910" class="alien"/>
<use xlink:href="#rotationCinema" x="250" y="910" class="cinema"/>
<use xlink:href="#rotationDog" x="250" y="910" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(478 894.28)" ></text>
<g class="animator animSpecialRotation">
<use xlink:href="#rotationBasic" x="450" y="910" class="basic"/>
<use xlink:href="#rotationAlien" x="450" y="910" class="alien"/>
<use xlink:href="#rotationCinema" x="450" y="910" class="cinema"/>
<use xlink:href="#rotationDog" x="450" y="910" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(179 1058.97)" ></text>
<g class="animator animSpecialRotation">
<use xlink:href="#rotationBasic" x="150" y="1080" class="basic"/>
<use xlink:href="#rotationAlien" x="150" y="1080" class="alien"/>
<use xlink:href="#rotationCinema" x="150" y="1080" class="cinema"/>
<use xlink:href="#rotationDog" x="150" y="1080" class="dogs"/>
</g>
</g>
<g class="easeGroup" >
<text transform="translate(384 1058.97)" ></text>
<g class="animator animSpecialRotation">
<use xlink:href="#rotationBasic" x="350" y="1080" class="basic"/>
<use xlink:href="#rotationAlien" x="350" y="1080" class="alien"/>
<use xlink:href="#rotationCinema" x="350" y="1080" class="cinema"/>
<use xlink:href="#rotationDog" x="350" y="1080" class="dogs"/>
</g>
</g>
</g>
<g id="titleBackgrounds" fill="#E4E4E4">
<rect width="1800" height="60"/>
<rect width="1800" height="60" y="400"/>
<rect width="1800" height="60" y="800"/>
</g>
<g id="grid" fill="#000" opacity="0.15">
<rect width="1" height="1200" />
<rect width="2" height="1200" x="599" />
<rect width="2" height="1200" x="1199"/>
<rect width="1" height="1200" x="1799"/>
</g>
<g id="sectionTitles" fill="#403e3c">
<text transform="translate(256.49 33)" font-size="30" >Position</text>
<text transform="translate(259.94 53)" font-size="18" >Power Eases</text>
<text transform="translate(856.49 33)" font-size="30" >Position</text>
<text transform="translate(823.01 53)" font-size="18" >Non-Configurable Eases</text>
<text transform="translate(1456.49 33)" font-size="30" >Position</text>
<text transform="translate(1438.42 53)" font-size="18" >Configurable Eases</text>
<text transform="translate(270.61 433)" font-size="30" >Scale</text>
<text transform="translate(259.94 453)" font-size="18" >Power Eases</text>
<text transform="translate(870.61 433)" font-size="30" >Scale</text>
<text transform="translate(823.01 453)" font-size="18" >Non-Configurable Eases</text>
<text transform="translate(1470.61 433)" font-size="30" >Scale</text>
<text transform="translate(1438.42 453)" font-size="18" >Configurable Eases</text>
<text transform="translate(253.99 833)" font-size="30" >Rotation</text>
<text transform="translate(259.94 853)" font-size="18" >Power Eases</text>
<text transform="translate(853.99 833)" font-size="30" >Rotation</text>
<text transform="translate(823.01 853)" font-size="18" >Non-Configurable Eases</text>
<text transform="translate(1453.99 833)" font-size="30" >Rotation</text>
<text transform="translate(1438.42 853)" font-size="18" >Configurable Eases</text>
</g>
</svg>
<div id="controls">
<div id="runButton">Run It!</div>
<div id="viewBoxControls">
<h4>viewBox Zoom</h4>
<div class="vbControl" data-view = "0 0 600 400">1</div>
<div class="vbControl" data-view = "600 0 600 400">2</div>
<div class="vbControl" data-view = "1200 0 600 400">3</div>
<div class="vbControl" data-view = "0 400 600 400">4</div>
<div class="vbControl" data-view = "600 400 600 400">5</div>
<div class="vbControl" data-view = "1200 400 600 400">6</div>
<div class="vbControl" data-view = "0 800 600 400">7</div>
<div class="vbControl" data-view = "600 800 600 400">8</div>
<div class="vbControl" data-view = "1200 800 600 400">9</div>
<div class="vbControl vbControlFull" data-view = "0 0 1800 1200">Full Grid</div>
</div>
<div id="themeControls">
<h4>Theme Color & Icons</h4>
<div id="colorControls">
<div class="swatch"></div>
<div class="swatch"></div>
<div class="swatch"></div>
<div class="swatch"></div>
<div class="swatch"></div>
<div class="swatch"></div>
<div class="swatch"></div>
<div class="swatch"></div>
</div>
<div id="iconControls">
<div class="iconButton" data-icon = ".basic" >Basic Shapes</div>
<div class="iconButton" data-icon = ".alien" >Alien Invasion</div>
<div class="iconButton" data-icon = ".dogs" >Puppy Dogs</div>
<div class="iconButton" data-icon = ".cinema" >The Cinema</div>
</div>
</div>
<div id="easeControl">
<h4>Ease Selector</h4>
<div class="easeButton" data-ease = ".easeIn">Ease In</div>
<div class="easeButton" data-ease = ".easeOut" >Ease Out</div>
<div class="easeButton" data-ease = ".easeInOut" >Ease In/Out</div>
<h4>Tween Duration Slider</h4>
</div>
<div id="sliderWrap">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 275 60">
<defs>
<lineargradient id="sliderGradient" x1="137.65" y1="31.6" x2="137.65" y2="12.81" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#fff"/>
<stop offset="0.34" stop-color="#eae6e4"/>
<stop offset="0.75" stop-color="#d6cfcc"/>
<stop offset="1" stop-color="#d6cfcc"/>
</lineargradient>
</defs>
<title>Slide Wrap</title>
<path d="M10.9,13H264.4a9.6,9.6,0,1,1,0,19.2H10.9a9.6,9.6,0,0,1,0-19.2h0Zm0,3.16A6.44,6.44,0,0,0,10.9,29H264.4a6.44,6.44,0,1,0,0-12.88H10.9Z" transform="translate(0)" fill-rule="evenodd" fill="url(#sliderGradient)"/>
<g id="sliderDots" fill="#999">
<circle cx="24.28" cy="53.21" r="3.53" transform="translate(-2.71 1.32) rotate(-2.95)" />
<circle cx="62.01" cy="53.21" r="3.53" transform="translate(-2.66 3.26) rotate(-2.95)" />
<circle cx="99.74" cy="53.21" r="3.53" transform="translate(-2.61 5.21) rotate(-2.95)" />
<circle cx="137.47" cy="53.21" r="3.53" transform="translate(-2.56 7.15) rotate(-2.95)" />
<circle cx="175.19" cy="53.21" r="3.53" transform="translate(-2.51 9.09) rotate(-2.95)" />
<circle cx="212.92" cy="53.21" r="3.53" transform="translate(-2.46 11.04) rotate(-2.95)" />
<circle cx="250.65" cy="53.21" r="3.53" transform="translate(-2.41 12.98) rotate(-2.95)" />
</g>
</svg>
<div class="dragBounds">
<div class="dragger">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 40">
<defs>
<lineargradient id="draggerGradient" x1="16" y1="39.63" x2="16" y2="0.77" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#cb7828"/>
<stop offset="0.25" stop-color="#cf7c28"/>
<stop offset="0.35" stop-color="#f2991f"/>
<stop offset="0.89" stop-color="#f2991f"/>
<stop offset="0.94" stop-color="#fcb912"/>
<stop offset="1" stop-color="#ffd000"/>
</lineargradient>
</defs>
<title>Dragger</title>
<path d="M4.93,0.37H27.07a4.16,4.16,0,0,1,4.15,4.15V26.3a4.16,4.16,0,0,1-4.15,4.15h-1.9L16,39.63,6.83,30.45H4.93A4.16,4.16,0,0,1,.78,26.3V4.52A4.16,4.16,0,0,1,4.93.37Z" fill-rule="evenodd" fill="url(#draggerGradient)"/>
</svg>
</div>
</div>
</div>
<div class="dragData">Duration: <strong>1.0</strong></div>
<div class="currentEase">Ease: <strong>.easeIn</strong>
</div>
<div class="credits">GreenSock Easing Playground by Craig Roblewsky (PointC)</div>
</div>
@import url(https://fonts.googleapis.com/css?family=Oswald);
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700);
body, html {
width:100%;
height:100%;
overflow: hidden;
margin: 0;
padding: 0;
border: 0;
}
#easeSVG {
font-family:Oswald;
position: absolute;
overflow: hidden;
left:50%;
opacity:0;
}
/* =======================================
parent wrapper for all controls
=========================================*/
#controls {
font-family: 'Source Sans Pro', sans-serif;
width:680px;
border-radius: 4px;
position: absolute;
text-align: center;
background-color: #E4E4E4;
padding: 10px 0;
height: 200px;
left:50%;
opacity:0;
}
#controls h4 {
line-height: 18px;
font-size: 16px;
margin:4px 0;
font-weight: 700;
}
/* =======================================
viewbox Controls
=========================================*/
#viewBoxControls {
width:116px;
position: absolute;
left: 10px;
top:10px;
}
.vbControl {
width:36px;
margin: 0 2px 2px 0;
float: left;
}
.vbControl.vbControlFull {
width:112px; /* 'full grid' button is larger than the other 9 viewBox controls */
}
/* =======================================
theme control wrapper
=========================================*/
#themeControls {
width:202px;
position: absolute;
left: 136px;
top:10px;
}
/* =======================================
icon controls
=========================================*/
#iconControls {
float: left;
width: 116px;
margin-left:10px;
}
.iconButton {
width:116px;
font-size: 13px;
margin: 0 2px 2px 0;
float: left;
}
/* =======================================
swatch controls
=========================================*/
#colorControls {
width:76px;
float:left;
}
.swatch {
width:36px;
height:36px;
margin: 0 2px 2px 0;
float: left;
cursor: pointer;
border-radius: 4px;
box-sizing: border-box;
border: solid 2px rgba(255,255,255,0.10);
}
.swatch:hover {
border: solid 2px rgba(255,255,255,0.50);
}
/* =======================================
ease controls
=========================================*/
#easeControl {
width:275px;
position: absolute;
right:10px;
}
.easeButton {
width: auto;
padding: 0 6px;
display: inline-block;
}
/* =======================================
universal button styling and hover color for ease, swatch and icons
=========================================*/
.vbControl, .iconButton, .easeButton {
height:36px;
font-size: 14px;
box-sizing: border-box;
border: solid 1px #B8ABA4;
line-height:36px;
cursor: pointer;
border-radius: 4px;
background: #ffffff;
background: -moz-linear-gradient(top, #ffffff 0%, #f6f6f6 47%, #ededed 100%);
background: -webkit-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%);
background: linear-gradient(to bottom, #ffffff 0%,#f6f6f6 47%,#ededed 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed',GradientType=0 );
}
.vbControl:hover, .iconButton:hover, .easeButton:hover {
background: #262626;
color: #fff;
}
/* =======================================
duration slider elements stying
=========================================*/
#sliderWrap {
width:275px;
height: 60px;
position: absolute;
right: 10px;
top:90px;
}
.dragger {
width:32px;
height: 40px;
position: absolute;
top: 6px;
}
.dragBounds {
width:258px;
height: 40px;
position: absolute;
top:0;
left:8px;
}
/* =======================================
user selected data for ease and tween time
=========================================*/
.currentEase, .dragData {
position: absolute;
right:136px;
font-size: 18px;
}
.currentEase {
bottom: 10px;
}
.dragData {
bottom: 30px;
}
strong {
font-weight:700;
}
/* =======================================
master Run button
=========================================*/
#runButton {
width: auto;
height: auto;
position: absolute;
right: 10px;
bottom:10px;
color: white;
font-size: 24px;
line-height: 36px;
padding: 4px 10px;
cursor:pointer;
font-weight:700;
background: #8fc400;
border: solid 1px #B8ABA4;
border-radius: 4px;
background: -moz-linear-gradient(top, #8fc400 0%, #8fc400 100%);
background: -webkit-linear-gradient(top, #8fc400 0%,#8fc400 100%);
background: linear-gradient(to bottom, #8fc400 0%,#8fc400 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#8fc400', endColorstr='#8fc400',GradientType=0 );
}
#runButton:hover {
background: #262626;
}
/* =======================================
set the initial color of the icons
=========================================*/
.animator {
fill: #94c356;
}
/* =======================================
set the initial color of the section captions
=========================================*/
.easeGroup text {
fill: #dcdcdc;
font-size:14px;
}
.credits {
position: absolute;
bottom: 5px;
left: 12px;
font-size: 11px;
color: #979797;
}
$( document ).ready(function() {
$( window ).load(function() {
/*
Greetings fellow coder
Thanks for taking a look at the new demo
I have a lot more demos, tricks and tips in the works
I've finally set up a Twitter account for all these things so please follow me: @Craig_PointC
Have fun
*/
var demo = document.getElementById("easeSVG"),
$positions = $(".animPosition"),
$animSpecialPosition = $(".animSpecialPosition"),
$scales = $(".animScale"),
$animSpecialScale = $(".animSpecialScale"),
$rotations = $(".animRotation"),
$animSpecialRotation = $(".animSpecialRotation"),
$controls = $("#controls"),
$animator = $(".animator"),
easeArray = [ "Power0", "Power1", "Power2", "Power3", "Power4", "Linear", "Sine", "Expo", "Circ", "Bounce", "Back", "Elastic" ],
easeType = ".easeIn", // initial ease selection
tm = 1, // initial tween time
animToggle = 0, // simple toggle to set the tween variables correctly each time the Run button is clicked
colorArray = ["#94c356", "#46a4cc", "#50a39e", "#a63e4b", "#e3aa59", "#a63ba0", "#a2a2a2", "#0f0f0f"], // swatch colors
iconArray = [".basic",".alien",".dogs",".cinema"], //icon groups
$dragger = $(".dragger"),
$dragBounds = $(".dragBounds"),
captionText = [
"Power 0 (same as Linear)",
"Power 1 (same as Quad)",
"Power 2 (same as Cubic)",
"Power 3 (same as Quart)",
"Power 4 (same as Quint or Strong)",
"Linear",
"Sine",
"Expo",
"Circ",
"Bounce",
"Back",
"Elastic",
"Slow Mo",
"Stepped",
"Rough"],
captionLoop = captionText.length,
$easeCaptions = $(".easeGroup text"),
regularBorder = "#B8ABA4", // non active button border
activeBorder = "#29abe2", // currently selected option
$swatches = $(".swatch"),
$vbButton = $(".vbControl"),
$iconButton = $(".iconButton"),
$easeButton = $(".easeButton"),
masterScale = 0.1, // change if you want to scale down more or less in that section
masterRotation = 360, // change if you want more rotation in that section
/* the specialEases variable below contains a configuration for SlowMo, Stepped and Rough eases
feel free to experiment with the settings - it will apply globally to the position, scale and rotation sections
the Back and Elastic eases are also configurable, but for this demo they are left at their default settings
which work pretty well in most cases
for complete details about configuring eases, visit the GreenSock website docs section
https://greensock.com/docs/#/HTML5/Easing/ */
specialEases = [
{e:SlowMo.ease.config(0.2, 0.6)},
{e:SteppedEase.config(8)},
{e:RoughEase.ease.config( {strength:4, points:16, template:Strong.easeInOut, taper:'both', clamp:true, randomize:false} )}
];
// loop through each row and add the captions to each ease group
for(i=0;i<3;i++) {
for(j=0; j<captionLoop; j++) {
$easeCaptions[j+(i*captionLoop)].textContent = captionText[j]
}
}
TweenMax.set(".alien, .dogs, .cinema", {autoAlpha:0}); // initially hide all but the basic theme icons
TweenMax.set($animator, { transformOrigin:"center"}); // center the origin for the scale and rotation tweens
TweenMax.set([ $vbButton[9], $iconButton[0], $easeButton[0] ], {borderColor:activeBorder}); // highlight initial settings as active buttons
TweenMax.set([$controls, demo], {transformOrigin:"center", xPercent:-50});
TweenMax.set($positions, { rotation:0.01});
$swatches.each(function(i) {
TweenMax.set(this, {backgroundColor:colorArray[i]}) // fill the 8 swatches from the color array
});
/* set the dragger in the 1.0 second position
onDrag update the text and time variable
dragBounds width = 226
set a 6 second drag limit: 226/6 = 37.66 */
TweenMax.set($dragger,{x:37.66});
Draggable.create( $dragger, {
type:"x",
bounds: $dragBounds,
onDrag: trackDrag
});
function trackDrag() {
tm = (this.x/37.66).toFixed(1);
$( ".dragData strong" ).html( tm );
}
// gently bring all elements into view
TweenMax.to([$controls, demo], .75, {autoAlpha:1});
/* ---------------------------------------------------------------
Button controls for all the options
---------------------------------------------------------------*/
//change the base color of the symbols
$swatches.click(function() {
TweenMax.set( $animator, { fill:colorArray[ $(this).index() ] });
})
//change the icon theme and highlight the active button
$iconButton.click(function() {
var iconType = this.getAttribute("data-icon");
TweenMax.set(iconArray,{autoAlpha:0});
TweenMax.set(iconType,{autoAlpha:1});
TweenMax.set($iconButton,{borderColor:regularBorder});
TweenMax.set(this, {borderColor:activeBorder});
})
//animate the viewBox and highlight the active button
$vbButton.click(function() {
var newView = this.getAttribute("data-view");
TweenMax.to(demo, 1, {attr:{viewBox:newView}, ease:Power3.easeInOut});
TweenMax.set($vbButton,{borderColor:regularBorder})
TweenMax.set(this, {borderColor:activeBorder});
})
//switch the ease type and highlight the active button
$easeButton.click(function() {
easeType = this.getAttribute("data-ease");
$( ".currentEase strong" ).html( easeType );
TweenMax.set($easeButton,{borderColor:regularBorder});
TweenMax.set(this, {borderColor:activeBorder});
})
/* ---------------------------------------------------------------
Master RUN Button - Make 'em all tween. Yay!!!
---------------------------------------------------------------*/
$("#runButton").click(function() {
if (animToggle == 0) {
distance = 500;
newScale = masterScale;
newRotation = masterRotation;
animToggle = 1;
}
else {
distance = 0;
newScale = 1;
newRotation = 0;
animToggle = 0;
}
$positions.each(function(i) {
TweenMax.to(this, tm, {x:distance, ease:easeArray[i]+easeType});
});
$animSpecialPosition.each(function(i) {
TweenMax.to(this, tm, {x:distance, ease:specialEases[i].e});
});
$scales.each(function(i) {
TweenMax.to(this, tm, {scale:newScale, ease:easeArray[i]+easeType});
});
$animSpecialScale.each(function(i) {
TweenMax.to(this, tm, {scale:newScale, ease:specialEases[i].e});
});
$rotations.each(function(i) {
TweenMax.to(this, tm, {rotation:newRotation, ease:easeArray[i]+easeType});
});
$animSpecialRotation.each(function(i) {
TweenMax.to(this, tm, {rotation:newRotation, ease:specialEases[i].e});
});
})
/* ---------------------------------------------------------------
Correctly size/resize and position the SVG and control panel
---------------------------------------------------------------*/
function sizeAll() {
var h = window.innerHeight,
w = window.innerWidth;
if ( w > (h-250)*1.5) {
TweenMax.set(demo, {height:h-250, width:(h-250)*1.5});
TweenMax.set($controls, {y:h-240});
}
else {
TweenMax.set(demo, {y:0, width:w-10, height:w/1.5});
TweenMax.set($controls, {y:w/1.5+10});
}
}
$(window).resize(sizeAll);
sizeAll();
// end window load
});
// end doc ready
});
Also see: Tab Triggers