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.
Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.
Upgrade to PROIf 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.
Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.
Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:
Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.
This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.
Upgrade to PRO
<div class="container" style="position: absolute; width: 200px; height: 600px;">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 200 600" xml:space="preserve" overflow="hidden">
<defs>
<style type="text/css">
@import url('https://fonts.googleapis.com/css?family=Roboto:300italic');
</style>
</defs>
<g id="BGDVerlauf">
<linearGradient id="XMLID_2_" gradientUnits="userSpaceOnUse" x1="0" y1="300" x2="199.667" y2="300">
<stop offset="0" style="stop-color:#D9D9D9" />
<stop offset="0.5" style="stop-color:#FFFFFF" />
<stop offset="1" style="stop-color:#D9D9D9" />
</linearGradient>
<rect fill="url(#XMLID_2_)" width="199.667" height="600" />
</g>
<g id="italicText">
<text x="10" y="413" font-family="Roboto" font-weight="300" font-style="italic" font-size="14" letter-spacing=".8" fill="#000000">i-shares Emerging Markets</text>
<text x="10" y="432" font-family="Roboto" font-weight="300" font-style="italic" font-size="14" letter-spacing=".8" fill="#000000">Dividend UCITS ETF</text>
</g>
<g id="Icon">
<circle fill="#8ABD26" cx="164.839" cy="425.858" r="8.165" />
<polyline fill="none" stroke="#FFFFFF" points="163.354,421.643 167.266,425.469 163.354,430.064 " />
</g>
<g id="button">
<path d="M173.625,600H0v-14.158h167.625c3.313,0,6,2.687,6,6V600z" />
<text x="10" y="596" font-family="Roboto" font-weight="300" font-size="9" letter-spacing="1" fill="#ffffff">RECHTLICHE INFORMATIONEN</text>
</g>
<g id="iSharesLogo">
<g>
<path fill="#88B618" d="M155.545,527.3c-1.082,0-1.953,0.845-1.953,1.939c0,1.092,0.871,1.938,1.953,1.938
s1.953-0.846,1.953-1.938C157.498,528.145,156.627,527.3,155.545,527.3 M155.545,530.873c-0.91,0-1.613-0.705-1.613-1.634
c0-0.933,0.703-1.635,1.613-1.635c0.911,0,1.614,0.702,1.614,1.635C157.159,530.168,156.456,530.873,155.545,530.873
M155.688,528.433c0.252,0,0.374,0.107,0.374,0.35c0,0.244-0.122,0.351-0.374,0.351h-0.518v-0.7H155.688z M156.041,530.347h0.399
v-0.042l-0.505-0.879c0.334-0.071,0.505-0.293,0.505-0.649c0-0.429-0.252-0.666-0.744-0.666h-0.899v2.236h0.373v-0.891h0.364
L156.041,530.347z" />
<path fill="#1A171B" d="M119.691,555.029h-1.699v8.303h5.076l0.531-1.369h-3.908V555.029z M114.811,557.787
c0.914-0.292,1.781-0.981,1.781-2.272c0-2.529-3.014-2.529-4.006-2.529h-3.236v10.347h3.115c1.771,0,4.711-0.461,4.711-2.987
C117.176,558.935,116.356,558.047,114.811,557.787 M111.217,554.229h1.139c1.355,0.004,2.313,0.154,2.313,1.404
c0,1.653-1.684,1.559-2.529,1.563h-0.922V554.229z M112.397,561.963h-1.181v-3.416h1.074c1.633,0,2.967,0.235,2.967,1.722
C115.258,561.685,114.176,561.963,112.397,561.963 M171.361,563.332h1.697v-8.313h-1.697V563.332z M167.391,556.045
c0.677,0,1.248,0.272,1.492,0.978l1.487-0.414c-0.155-0.568-0.909-1.713-3.085-1.713c-1.986,0-3.712,1.35-3.712,4.009
c0,2.731,1.651,4.558,3.946,4.558c1.217,0,2.014-0.279,2.795-0.824l-0.402-0.84c-0.677,0.348-1.255,0.5-1.964,0.5
c-1.474,0-2.539-1.096-2.539-3.347C165.409,557.138,166.08,556.045,167.391,556.045 M175.09,558.888l3.295-3.869h-1.726
l-3.499,3.987l3.51,4.326h1.998L175.09,558.888z M154.729,555.878c0-1.91-1.666-2.892-4.042-2.892H147.6v10.346h1.818v-4.267h1.08
l2.852,4.267h2.091l-3.068-4.539C153.465,558.365,154.729,557.461,154.729,555.878 M150.344,557.757h-0.926v-3.533l1.123,0.006
c1.525,0,2.316,0.476,2.316,1.73C152.857,557.343,151.875,557.757,150.344,557.757 M126.807,555.029l0.301,0.642l-3.225,7.661
h1.584l0.682-1.688h3.652l0.731,1.688h1.858l-3.648-8.303H126.807z M126.682,560.37l1.248-3.064l1.295,3.064H126.682z
M146.805,555.019h-1.726l-3.503,3.987l3.512,4.326h1.994l-3.576-4.444L146.805,555.019z M158.998,554.896
c-2.256,0-3.886,1.361-3.886,4.293c0,2.912,1.563,4.273,3.888,4.273c2.332,0,3.893-1.361,3.893-4.273
C162.893,556.257,161.258,554.896,158.998,554.896 M158.998,562.298c-1.734,0.004-2.115-1.412-2.115-3.109
c0-1.701,0.392-3.188,2.117-3.188c1.729,0,2.125,1.479,2.125,3.188C161.125,560.886,160.74,562.302,158.998,562.298
M135.862,556.045c0.673,0,1.248,0.272,1.496,0.978l1.483-0.414c-0.158-0.568-0.91-1.713-3.084-1.713
c-1.992,0.002-3.715,1.35-3.715,4.009c0,2.731,1.656,4.558,3.957,4.558c1.207,0,2.008-0.279,2.784-0.828l-0.397-0.836
c-0.678,0.348-1.26,0.5-1.965,0.5c-1.477,0-2.537-1.096-2.537-3.347C133.885,557.138,134.555,556.045,135.862,556.045
M139.776,563.332h1.703v-8.313h-1.703V563.332z" />
<path fill="#1A171B" d="M97.87,563.468c1.445,0,2.367-1.172,2.367-3.131s-0.898-3.109-2.367-3.109c-0.753,0-1.3,0.343-1.64,0.957
v-3.155h-1.424v8.303h1.378v-0.899C96.525,563.093,97.083,563.468,97.87,563.468 M98.78,560.36c0,1.514-0.455,2.174-1.287,2.174
c-0.808,0-1.287-0.694-1.287-2.186c0-1.494,0.479-2.187,1.287-2.187C98.314,558.162,98.78,558.833,98.78,560.36 M101.504,565.291
c1.082,0,1.764-0.399,2.299-1.903l2.131-6.002v-0.021h-1.161l-1.265,4.041l-1.584-4.041h-1.572v0.021l2.426,5.935
c-0.24,0.594-0.581,0.831-1.197,0.831c-0.17,0-0.353-0.022-0.512-0.068h-0.034v1.15
C101.139,565.269,101.32,565.291,101.504,565.291" />
<path fill="#1A171B" d="M180.912,554.895c-0.957,0-1.725,0.745-1.725,1.71s0.768,1.71,1.725,1.71c0.955,0,1.724-0.745,1.724-1.71
S181.867,554.895,180.912,554.895 M180.912,558.046c-0.803,0-1.424-0.62-1.424-1.441c0-0.82,0.621-1.441,1.424-1.441
c0.804,0,1.423,0.621,1.423,1.441C182.335,557.426,181.716,558.046,180.912,558.046 M181.037,555.895
c0.223,0,0.33,0.095,0.33,0.31c0,0.213-0.107,0.307-0.33,0.307h-0.456v-0.616H181.037z M181.35,557.583h0.353v-0.037l-0.447-0.776
c0.295-0.063,0.447-0.259,0.447-0.571c0-0.38-0.222-0.59-0.656-0.59h-0.795v1.975h0.33v-0.785h0.323L181.35,557.583z" />
<path fill="#88B618" d="M47.938,522.819c0,1.398,1.083,2.479,2.445,2.479c1.398,0,2.481-1.081,2.481-2.479
c0-1.364-1.083-2.448-2.481-2.448C49.021,520.371,47.938,521.455,47.938,522.819 M45.839,545.851h8.982v-1.502l-2.306-0.385
v-16.707h-0.35l-6.326,0.698v1.399l2.307,0.455v14.154l-2.307,0.385V545.851z M131.854,529.458c2.622,0,3.319,1.714,3.319,4.964
v0.315h-7.129C128.149,530.751,129.479,529.458,131.854,529.458 M79.986,535.017c0-3.041,1.433-4.754,3.74-4.754
c1.958,0,3.181,1.223,3.181,3.494v12.094h4.368v-12.094c0-3.563-1.992-6.639-6.081-6.639c-2.377,0-4.124,1.188-5.208,2.9v-10.348
h-0.348l-6.327,0.7v1.397l2.306,0.455v23.627h4.369V535.017z M117.139,536.169c0-3.775,1.748-5.347,4.51-5.347
c0.525,0,1.083,0.069,1.574,0.21h0.104v-3.74c-0.279-0.105-0.839-0.174-1.294-0.174c-2.655,0-4.192,1.781-5.032,4.124v-3.985
h-0.35l-6.186,0.698v1.399l2.306,0.455v16.041h4.368V536.169z M138.6,545.047v-2.063h-0.07c-1.188,0.386-2.971,0.664-4.299,0.664
c-4.613,0-6.117-2.131-6.186-6.639h11.324v-2.271c0-3.811-1.783-7.619-7.376-7.619c-5.067,0-8.423,3.109-8.423,9.505
c0,6.327,3.566,9.647,9.507,9.647C135,546.271,137.377,545.746,138.6,545.047 M100.958,543.438c-1.957,0-2.936-1.118-2.936-3.285
c0-2.096,1.188-3.11,3.706-3.11h2.55v2.866C104.277,541.796,102.879,543.438,100.958,543.438 M64.958,522.049
c1.957,0,4.159,0.56,6.012,1.992h0.069v-3.635c-1.223-0.524-3.634-0.943-5.836-0.943c-6.152,0-8.878,3.565-8.878,7.304
c0,4.334,3.181,6.082,6.362,7.446c4.334,1.888,6.081,2.726,6.081,5.452c0,2.271-1.293,4.018-5.173,4.018
c-1.991,0-4.334-0.487-6.711-2.306h-0.105v3.74c1.713,0.664,3.95,1.153,6.607,1.153c5.452,0,9.715-2.517,9.715-7.967
c0-4.895-3.774-6.539-7.303-8.11c-3.426-1.503-5.314-2.447-5.314-4.755C60.483,523.552,61.881,522.049,64.958,522.049
M146.953,529.494c1.434,0,3.355,0.385,4.613,1.606h0.07v-3.318c-0.769-0.281-2.795-0.664-4.229-0.664
c-4.717,0-6.64,2.727-6.64,5.592c0,3.213,2.515,4.438,4.893,5.381c2.622,1.049,3.811,1.678,3.811,3.355
c0,1.434-0.979,2.447-3.006,2.447c-1.748,0-3.881-0.42-5.383-1.748h-0.07v3.426c1.293,0.42,2.971,0.699,4.963,0.699
c3.949,0,7.095-1.887,7.095-5.906c0-3.531-2.655-4.684-5.032-5.661c-2.517-1.017-3.74-1.576-3.74-3.147
C144.297,530.332,145.205,529.494,146.953,529.494 M104.418,545.851h4.229v-12.407c0-3.739-2.131-6.325-7.2-6.325
c-2.797,0-5.173,0.873-6.361,1.747v2.096h0.07c1.328-0.664,3.391-1.222,5.208-1.222c2.83,0,3.914,1.188,3.914,3.494v1.537h-2.796
c-4.508,0-7.758,1.818-7.758,6.013c0,3.356,2.166,5.487,5.662,5.487c2.48,0,4.125-1.258,5.033-2.797V545.851z" />
</g>
</g>
<g id="BGD">
<rect fill="#8ABD26" width="199.667" height="600" />
</g>
<g id="iSharesLogoWhite">
<g>
<path fill="#FFFFFF" d="M155.545,22.3c-1.082,0-1.953,0.845-1.953,1.939c0,1.092,0.871,1.938,1.953,1.938s1.953-0.846,1.953-1.938
C157.498,23.145,156.627,22.3,155.545,22.3 M155.545,25.873c-0.91,0-1.613-0.705-1.613-1.634c0-0.933,0.703-1.635,1.613-1.635
c0.911,0,1.614,0.702,1.614,1.635C157.159,25.168,156.456,25.873,155.545,25.873 M155.688,23.433c0.252,0,0.374,0.107,0.374,0.35
c0,0.244-0.122,0.351-0.374,0.351h-0.518v-0.7H155.688z M156.041,25.347h0.399v-0.042l-0.505-0.879
c0.334-0.071,0.505-0.293,0.505-0.649c0-0.429-0.252-0.666-0.744-0.666h-0.899v2.236h0.373v-0.891h0.364L156.041,25.347z" />
<path fill="#FFFFFF" d="M119.691,50.029h-1.699v8.303h5.076l0.531-1.369h-3.908V50.029z M114.811,52.787
c0.914-0.292,1.781-0.981,1.781-2.272c0-2.529-3.014-2.529-4.006-2.529h-3.236v10.347h3.115c1.771,0,4.711-0.461,4.711-2.987
C117.176,53.935,116.356,53.047,114.811,52.787 M111.217,49.229h1.139c1.355,0.004,2.313,0.154,2.313,1.404
c0,1.653-1.684,1.559-2.529,1.563h-0.922V49.229z M112.397,56.963h-1.181v-3.416h1.074c1.633,0,2.967,0.235,2.967,1.722
C115.258,56.685,114.176,56.963,112.397,56.963 M171.361,58.332h1.697v-8.313h-1.697V58.332z M167.391,51.045
c0.677,0,1.248,0.272,1.492,0.978l1.487-0.414c-0.155-0.568-0.909-1.713-3.085-1.713c-1.986,0-3.712,1.35-3.712,4.009
c0,2.731,1.651,4.558,3.946,4.558c1.217,0,2.014-0.279,2.795-0.824l-0.402-0.84c-0.677,0.348-1.255,0.5-1.964,0.5
c-1.474,0-2.539-1.096-2.539-3.347C165.409,52.138,166.08,51.045,167.391,51.045 M175.09,53.888l3.295-3.869h-1.726l-3.499,3.987
l3.51,4.326h1.998L175.09,53.888z M154.729,50.878c0-1.91-1.666-2.892-4.042-2.892H147.6v10.346h1.818v-4.267h1.08l2.852,4.267
h2.091l-3.068-4.539C153.465,53.365,154.729,52.461,154.729,50.878 M150.344,52.757h-0.926v-3.533l1.123,0.006
c1.525,0,2.316,0.476,2.316,1.73C152.857,52.343,151.875,52.757,150.344,52.757 M126.807,50.029l0.301,0.642l-3.225,7.661h1.584
l0.682-1.688h3.652l0.731,1.688h1.858l-3.648-8.303H126.807z M126.682,55.37l1.248-3.064l1.295,3.064H126.682z M146.805,50.019
h-1.726l-3.503,3.987l3.512,4.326h1.994l-3.576-4.444L146.805,50.019z M158.998,49.896c-2.256,0-3.886,1.361-3.886,4.293
c0,2.912,1.563,4.273,3.888,4.273c2.332,0,3.893-1.361,3.893-4.273C162.893,51.257,161.258,49.896,158.998,49.896 M158.998,57.298
c-1.734,0.004-2.115-1.412-2.115-3.109c0-1.701,0.392-3.188,2.117-3.188c1.729,0,2.125,1.479,2.125,3.188
C161.125,55.886,160.74,57.302,158.998,57.298 M135.862,51.045c0.673,0,1.248,0.272,1.496,0.978l1.483-0.414
c-0.158-0.568-0.91-1.713-3.084-1.713c-1.992,0.002-3.715,1.35-3.715,4.009c0,2.731,1.656,4.558,3.957,4.558
c1.207,0,2.008-0.279,2.784-0.828l-0.397-0.836c-0.678,0.348-1.26,0.5-1.965,0.5c-1.477,0-2.537-1.096-2.537-3.347
C133.885,52.138,134.555,51.045,135.862,51.045 M139.776,58.332h1.703v-8.313h-1.703V58.332z" />
<path fill="#FFFFFF" d="M97.87,58.468c1.445,0,2.367-1.172,2.367-3.131s-0.898-3.109-2.367-3.109c-0.753,0-1.3,0.343-1.64,0.957
v-3.155h-1.424v8.303h1.378v-0.899C96.525,58.093,97.083,58.468,97.87,58.468 M98.78,55.36c0,1.514-0.455,2.174-1.287,2.174
c-0.808,0-1.287-0.694-1.287-2.186c0-1.494,0.479-2.187,1.287-2.187C98.314,53.162,98.78,53.833,98.78,55.36 M101.504,60.291
c1.082,0,1.764-0.399,2.299-1.903l2.131-6.002v-0.021h-1.161l-1.265,4.041l-1.584-4.041h-1.572v0.021l2.426,5.935
c-0.24,0.594-0.581,0.831-1.197,0.831c-0.17,0-0.353-0.022-0.512-0.068h-0.034v1.15C101.139,60.269,101.32,60.291,101.504,60.291" />
<path fill="#FFFFFF" d="M180.912,49.895c-0.957,0-1.725,0.745-1.725,1.71s0.768,1.71,1.725,1.71c0.955,0,1.724-0.745,1.724-1.71
S181.867,49.895,180.912,49.895 M180.912,53.046c-0.803,0-1.424-0.62-1.424-1.441c0-0.82,0.621-1.441,1.424-1.441
c0.804,0,1.423,0.621,1.423,1.441C182.335,52.426,181.716,53.046,180.912,53.046 M181.037,50.895c0.223,0,0.33,0.095,0.33,0.31
c0,0.213-0.107,0.307-0.33,0.307h-0.456v-0.616H181.037z M181.35,52.583h0.353v-0.037l-0.447-0.776
c0.295-0.063,0.447-0.259,0.447-0.571c0-0.38-0.222-0.59-0.656-0.59h-0.795v1.975h0.33v-0.785h0.323L181.35,52.583z" />
<path fill="#FFFFFF" d="M47.938,17.819c0,1.398,1.083,2.479,2.445,2.479c1.398,0,2.481-1.081,2.481-2.479
c0-1.364-1.083-2.448-2.481-2.448C49.021,15.371,47.938,16.455,47.938,17.819 M45.839,40.851h8.982v-1.502l-2.306-0.385V22.257
h-0.35l-6.326,0.698v1.399l2.307,0.455v14.154l-2.307,0.385V40.851z M131.854,24.458c2.622,0,3.319,1.714,3.319,4.964v0.315
h-7.129C128.149,25.751,129.479,24.458,131.854,24.458 M79.986,30.017c0-3.041,1.433-4.754,3.74-4.754
c1.958,0,3.181,1.223,3.181,3.494v12.094h4.368V28.757c0-3.563-1.992-6.639-6.081-6.639c-2.377,0-4.124,1.188-5.208,2.9V14.671
h-0.348l-6.327,0.7v1.397l2.306,0.455v23.627h4.369V30.017z M117.139,31.169c0-3.775,1.748-5.347,4.51-5.347
c0.525,0,1.083,0.069,1.574,0.21h0.104v-3.74c-0.279-0.105-0.839-0.174-1.294-0.174c-2.655,0-4.192,1.781-5.032,4.124v-3.985
h-0.35l-6.186,0.698v1.399l2.306,0.455v16.041h4.368V31.169z M138.6,40.047v-2.063h-0.07c-1.188,0.386-2.971,0.664-4.299,0.664
c-4.613,0-6.117-2.131-6.186-6.639h11.324v-2.271c0-3.811-1.783-7.619-7.376-7.619c-5.067,0-8.423,3.109-8.423,9.505
c0,6.327,3.566,9.647,9.507,9.647C135,41.271,137.377,40.746,138.6,40.047 M100.958,38.438c-1.957,0-2.936-1.118-2.936-3.285
c0-2.096,1.188-3.11,3.706-3.11h2.55v2.866C104.277,36.796,102.879,38.438,100.958,38.438 M64.958,17.049
c1.957,0,4.159,0.56,6.012,1.992h0.069v-3.635c-1.223-0.524-3.634-0.943-5.836-0.943c-6.152,0-8.878,3.565-8.878,7.304
c0,4.334,3.181,6.082,6.362,7.446c4.334,1.888,6.081,2.726,6.081,5.452c0,2.271-1.293,4.018-5.173,4.018
c-1.991,0-4.334-0.487-6.711-2.306h-0.105v3.74c1.713,0.664,3.95,1.153,6.607,1.153c5.452,0,9.715-2.517,9.715-7.967
c0-4.895-3.774-6.539-7.303-8.11c-3.426-1.503-5.314-2.447-5.314-4.755C60.483,18.552,61.881,17.049,64.958,17.049
M146.953,24.494c1.434,0,3.355,0.385,4.613,1.606h0.07v-3.318c-0.769-0.281-2.795-0.664-4.229-0.664
c-4.717,0-6.64,2.727-6.64,5.592c0,3.213,2.515,4.438,4.893,5.381c2.622,1.049,3.811,1.678,3.811,3.355
c0,1.434-0.979,2.447-3.006,2.447c-1.748,0-3.881-0.42-5.383-1.748h-0.07v3.426c1.293,0.42,2.971,0.699,4.963,0.699
c3.949,0,7.095-1.887,7.095-5.906c0-3.531-2.655-4.684-5.032-5.661c-2.517-1.017-3.74-1.576-3.74-3.147
C144.297,25.332,145.205,24.494,146.953,24.494 M104.418,40.851h4.229V28.443c0-3.739-2.131-6.325-7.2-6.325
c-2.797,0-5.173,0.873-6.361,1.747v2.096h0.07c1.328-0.664,3.391-1.222,5.208-1.222c2.83,0,3.914,1.188,3.914,3.494v1.537h-2.796
c-4.508,0-7.758,1.818-7.758,6.013c0,3.356,2.166,5.487,5.662,5.487c2.48,0,4.125-1.258,5.033-2.797V40.851z" />
</g>
</g>
<g id="Eule">
<g id="EuleLinks">
<path fill="#1D1D1B" d="M100,450.127c-7.952,12.037-21.716,20.002-37.376,20.002c-24.621,0-44.58-19.672-44.58-43.938
s19.959-43.938,44.58-43.938c15.66,0,29.424,7.965,37.376,20.002v-21.72c0,0-22.455-22.415-48.438-14.954
c7.536-6.119,31.115-29.21,11.912-36.226c-5.027,5.672-30.917,24.929-30.917,24.929s11.615-33.94-7.588-32.882
c-2.529,10.117-18.935,45.032-21.97,45.133c-1.859-3.568-2.999-14-2.999-14V600h100v-99.648l-12-9.485l12-10.117V450.127z" />
</g>
<g id="EuleRechts">
<path fill="#383431" d="M100,450.127c7.952,12.037,21.717,20.002,37.376,20.002c24.62,0,44.579-19.672,44.579-43.938
s-19.959-43.938-44.579-43.938c-15.659,0-29.424,7.965-37.376,20.002v-21.72c0,0,22.455-22.415,48.438-14.954
c-7.535-6.119-31.115-29.21-11.912-36.226c5.027,5.672,30.918,24.929,30.918,24.929s-11.615-33.94,7.588-32.882
c2.529,10.117,18.934,45.032,21.97,45.133c1.858-3.568,2.999-14,2.999-14V600H100v-99.648l12-9.485l-12-10.117V450.127z" />
</g>
<g id="Augen">
<path fill="#1D1D1B" d="M136.701,387.326c-14.279,0-26.795,7.412-33.831,18.546c-0.951,1.506-2.418,1.449-2.418,1.449
s-1.718,0.057-2.67-1.449c-7.035-11.134-19.552-18.546-33.831-18.546c-22.01,0-39.852,17.603-39.852,39.316
c0,21.715,17.842,39.317,39.852,39.317c16.21,0,30.149-9.553,36.375-23.259c6.227,13.706,20.165,23.259,36.375,23.259
c22.01,0,39.853-17.603,39.853-39.317C176.554,404.929,158.711,387.326,136.701,387.326z" />
</g>
<g id="PupilleLinks">
<circle fill="#9AC0D3" cx="62.676" cy="426.283" r="27.816" />
<path fill="#6D9AC4" d="M68.06,445.724c-15.362,0-27.816-12.454-27.816-27.815c0-3.751,0.747-7.326,2.093-10.591
c-4.636,4.969-7.477,11.634-7.477,18.966c0,15.361,12.454,27.815,27.816,27.815c11.612,0,21.557-7.118,25.724-17.226
C83.322,442.315,76.091,445.724,68.06,445.724z" />
<path fill="#3E78B3" d="M59.386,407.438c12.885,0,23.33,10.445,23.33,23.33c0,3.657-0.843,7.116-2.343,10.197
c4.041-4.194,6.531-9.895,6.531-16.179c0-12.885-10.445-23.33-23.33-23.33c-9.227,0-17.201,5.357-20.986,13.131
C46.832,410.184,52.787,407.438,59.386,407.438z" />
<ellipse transform="matrix(0.8597 -0.5109 0.5109 0.8597 -204.0342 82.0966)" fill="#FFFFFF" cx="47.407" cy="412.411" rx="7.262" ry="5.084" />
<path fill="#C2D9E4" d="M66.033,437.92v-18.968l-9.978,0.005v4.009h3.937v14.954h-3.964v3.963H69v-3.963H66.033z M66.029,410.941
h-6.013v6.013h6.013V410.941z" />
</g>
<g id="PupilleRechts">
<circle fill="#9AC0D3" cx="136.676" cy="426.283" r="27.816" />
<path fill="#6D9AC4" d="M142.061,445.724c-15.363,0-27.816-12.454-27.816-27.815c0-3.751,0.747-7.326,2.093-10.591
c-4.636,4.969-7.477,11.634-7.477,18.966c0,15.361,12.454,27.815,27.815,27.815c11.612,0,21.558-7.118,25.725-17.226
C157.322,442.315,150.091,445.724,142.061,445.724z" />
<path fill="#3E78B3" d="M133.387,407.438c12.885,0,23.329,10.445,23.329,23.33c0,3.657-0.843,7.116-2.343,10.197
c4.041-4.194,6.53-9.895,6.53-16.179c0-12.885-10.444-23.33-23.329-23.33c-9.228,0-17.201,5.357-20.986,13.131
C120.832,410.184,126.787,407.438,133.387,407.438z" />
<ellipse transform="matrix(0.8597 -0.5109 0.5109 0.8597 -193.644 119.8955)" fill="#FFFFFF" cx="121.407" cy="412.411" rx="7.262" ry="5.084" />
<path fill="#C2D9E4" d="M139.033,437.92v-18.968l-9.979,0.005v4.009h3.938v14.954h-3.965v3.963H142v-3.963H139.033z
M139.029,410.941h-6.014v6.013h6.014V410.941z" />
</g>
<g id="LidLinksOben">
<polygon fill="#1D1D1B" points="29.153,426.229 45.901,397.222 79.396,397.222 96.144,426.229" />
</g>
<g id="LidLinksUnten">
<polygon fill="#1D1D1B" points="29.153,426.4 45.901,455.408 79.396,455.408 96.144,426.4" />
</g>
<g id="LidRechtsOben">
<polygon fill="#1D1D1B" points="102.898,426.229 119.646,397.222 153.142,397.222 169.889,426.229" />
</g>
<g id="LidRechtsUnten">
<polygon fill="#1D1D1B" points="102.898,426.4 119.646,455.408 153.142,455.408 169.889,426.4" />
</g>
</g>
<g id="frame">
<polygon fill="#898989" points="0,0 0,1.067 1,1.067 1,1 199,1 199,599 1,599 1,89.067 0,89.067 0,600 200,600 200,0" />
</g>
</svg>
</div>
var eule = document.getElementById("Eule");
var lidLinksOben = document.getElementById("LidLinksOben");
var lidLinksUnten = document.getElementById("LidLinksUnten");
var lidRechtsOben = document.getElementById("LidRechtsOben");
var lidRechtsUnten = document.getElementById("LidRechtsUnten");
var bgd = document.getElementById("BGD");
var iShareLogoWhite = document.getElementById("iSharesLogoWhite");
var button = document.getElementById("button");
TweenMax.set([iShareLogoWhite, button], {
opacity: 0
});
var euleScale = TweenMax.from(eule, 0.8, {
scale: 3.7,
transformOrigin: "24.5% 29%",
ease: Power2.easeInOut
})
var euleOpacity = TweenMax.to(eule, 1, {
opacity: 0
});
var bgdScale = TweenMax.to(bgd, 1, {
scaleY: 0.60,
transformOrigin: "center top",
ease: Power2.easeInOut
});
var LogoShow = TweenMax.to(iShareLogoWhite, 1, {
opacity: 1
});
var buttonShow = TweenMax.to(button, 1, {
opacity: 1
});
var timeLine01 = new TimelineMax({
repeat: -1,
repeatDelay: 5
});
timeLine01.add(euleScale, "+=2");
timeLine01.add(euleOpacity, "+=5");
timeLine01.add(bgdScale, "-=.5");
timeLine01.add(LogoShow);
timeLine01.add(buttonShow, "-=1");
var augen = new TimelineMax({
repeat: 1,
yoyo: true,
onComplete: repeat
});
var liderOben = TweenMax.from([lidLinksOben, lidRechtsOben], 0.1, {
scaleY: 0,
transformOrigin: "center top"
});
var liderUnten = TweenMax.from([lidLinksUnten, lidRechtsUnten], 0.1, {
scaleY: 0,
transformOrigin: "center bottom"
});
augen.add([liderOben, liderUnten]);
function repeat() {
//delay, callback, params, scope
TweenLite.delayedCall((1.5 * Math.random() + 0.5), augen.restart, [], augen)
}
flex
your skills and go off the grid
,
try coding a layout with float
.
Also see: Tab Triggers