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.
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Laag_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="841.89px" height="595.276px" viewBox="0 0 841.89 595.276" enable-background="new 0 0 841.89 595.276"
xml:space="preserve">
<circle cx="433px" cy="302px" r="4" style="stroke:#006600; fill:#00cc00"/>
<g class="eagle" id="eagle">
<g>
<defs>
<rect id="SVGID_1_" width="841.89" height="595.276"/>
</defs>
<clipPath id="SVGID_2_">
<use xlink:href="#SVGID_1_" overflow="visible"/>
</clipPath>
<path id="feather1" clip-path="url(#SVGID_2_)" d="M399,323.333c4.046,20.44-2.049,40.029-16,50c-7.206,5.15-14.953,6.623-20.333,7
c5.461-4.643,11.787-11.359,16.666-20.666c16.002-30.52,2.814-62.865,0.334-68.667"/>
<path id="feather2" clip-path="url(#SVGID_2_)" d="M395.667,339.333c0.786,6.357,1.039,15.415-1.667,25.667
c-1.029,3.899-2.322,7.353-3.666,10.333c7.564-3.197,11.299-7.782,13-10.333c7.802-11.695,5.562-29.668-6-44.667"/>
<path id="featherMiddle" clip-path="url(#SVGID_2_)" d="M403,339.333c2.829,5.062,6.269,12.635,8,22.334c0.531,2.978,0.832,5.786,0.981,8.401
c0.3-3.435,1.053-7.452,2.686-11.735c3.86-10.128,10.487-16.129,13.666-18.666L403,339.333z"/>
<path id="feather3" clip-path="url(#SVGID_2_)" d="M413.333,342c-0.056,3.055,0.054,15.78,9.667,25.667c4.364,4.488,9.141,6.802,12.334,8
c-4.358-7.056-6.169-13.209-7-17.667c-1.287-6.895-1.237-28.024-1.089-21.014c0.918-4.217,1.837-8.435,2.755-12.653"/>
<path id="feather4" clip-path="url(#SVGID_2_)" d="M427.667,300.667c-9.938,24.883-6.513,51.098,9,66.666
c8.475,8.506,18.616,11.888,25.333,13.334c-5.974-4.982-13.563-12.654-19.667-23.667c-14.641-26.414-10.175-53.007-8.333-61.666"/>
</g>
<g>
<g>
<defs>
<rect id="SVGID_3_" width="841.89" height="595.276"/>
</defs>
<clipPath id="SVGID_4_">
<use xlink:href="#SVGID_3_" overflow="visible"/>
</clipPath>
<path clip-path="url(#SVGID_4_)" d="M342.82,352.059c0.24-0.368,0.5-0.729,0.77-1.078c-0.21,0.21-0.4,0.43-0.59,0.64
C342.94,351.759,342.88,351.911,342.82,352.059"/>
<path id="leftWing" class="leftWing" clip-path="url(#SVGID_4_)" d="M376.74,143.27c-12.25-13.06-24.56-26.08-36.81-39.15c0.42,5.05,0.75,10.11,1.19,15.21
c-25-24.18-49.901-48.3-74.88-72.53c-0.2,5.24-0.33,10.54-0.57,15.78c30.96,29.04,61.94,58.09,93,87.13
c-36.53-31.18-72.92-62.37-109.41-93.52c-0.33,4.63-0.77,9.35-1.14,14.02c28.849,23.94,57.71,47.93,86.5,71.92
c-30.56-22.42-61.18-44.83-91.75-67.24c0.77,5.67,1.52,11.25,2.34,16.97c20.46,15.98,40.88,31.9,61.37,47.88
c-21.6-13.78-43.3-27.6-64.9-41.44c1.37,5.05,2.71,10.1,4.05,15.17c15.64,11.5,31.239,22.99,46.83,34.52
c-14.25-8-28.42-16.01-42.68-24.03c1.77,6.25,3.53,12.5,5.25,18.74c23.36,17.74,46.73,35.44,70.21,53.18
c-16.23-8.77-32.39-17.51-48.56-26.27c0,11.39-12.03,71.19,20.6,106.91l115.582,67.23c0.537,0.419,1.069,0.833,1.595,1.244
c0.015-0.013,0.031-0.023,0.046-0.037c2.292-1.823,4.762-3.793,5.584-4.421c2.705-2.064,5.589-4.271,8.62-6.598
c0.53-0.407,1.068-0.82,1.608-1.234c1.841-1.413,3.742-2.876,5.67-4.358C417.566,263.215,381.344,160.521,376.74,143.27"/>
</g>
<g>
<defs>
<rect id="SVGID_5_" width="841.89" height="595.276"/>
</defs>
<clipPath id="SVGID_6_">
<use xlink:href="#SVGID_5_" overflow="visible"/>
</clipPath>
<path id="rightWing" clip-path="url(#SVGID_6_)" d="M522.92,139.74c20.51-15.98,40.92-31.9,61.38-47.88c0.86-5.72,1.63-11.3,2.38-16.97
c-0.02,0-0.029,0.02-0.05,0.04c-20.1,14.72-40.26,29.49-60.399,44.23c-1.82,1.32-3.631,2.66-5.45,3.98
c-8.55,6.26-17,12.5-25.55,18.71c-0.141,0.08-0.271,0.18-0.4,0.28c3.63-3.02,7.27-6.04,10.9-9.03c3.63-3.01,7.25-6.02,10.879-9.04
c1.69-1.4,3.381-2.79,5.07-4.19c19.94-16.57,39.87-33.17,59.762-49.66c-0.432-4.67-0.821-9.39-1.191-14.02
c-20.37,17.41-40.79,34.86-61.15,52.31l-48.22,41.21c0.17-0.15,0.34-0.31,0.5-0.46c16.64-15.58,33.3-31.17,49.96-46.8
c14.18-13.25,28.33-26.57,42.55-39.87c-0.229-5.24-0.43-10.54-0.62-15.78c-13.06,12.68-26.13,25.31-39.199,37.96
c-5.021,4.87-10.04,9.72-15.04,14.59c-6.86,6.66-13.74,13.32-20.601,19.98c0-0.02,0-0.03,0.021-0.05
c0.37-5.07,0.75-10.11,1.14-15.13v-0.03c-3.63,3.87-7.26,7.73-10.88,11.55c-8.68,9.2-17.31,18.4-26,27.6
c-2.88,10.93-5.79,21.85-8.71,32.76c-0.74,2.78-1.48,5.56-2.21,8.33v-0.05l-48.035,144.452l19.207,14.989
c0.538,0.419,1.069,0.833,1.595,1.243c0.015-0.013,0.031-0.024,0.047-0.036L532.14,276.52C564.74,240.8,552.73,181,552.73,169.61
c-13.351,7.24-26.75,14.49-40.15,21.75c-2.78,1.52-5.54,3.04-8.35,4.52c0.029-0.04,0.079-0.06,0.119-0.09
c2.391-1.79,4.78-3.61,7.17-5.39c19.98-15.2,39.961-30.31,59.971-45.5c0.97-0.74,1.92-1.46,2.89-2.2c0-0.03,0.021-0.05,0.021-0.08
c1.76-6.22,3.51-12.43,5.27-18.66c-0.02,0-0.03,0.02-0.05,0.04c-5.24,2.93-10.46,5.87-15.7,8.82c-1.87,1.05-3.76,2.1-5.63,3.16
v0.01c-2.63,1.479-5.26,2.95-7.88,4.44c-0.719,0.4-1.44,0.8-2.16,1.2c-3.77,2.13-7.55,4.24-11.309,6.36
c9.769-7.19,19.519-14.39,29.259-21.58c5.859-4.3,11.7-8.62,17.53-12.941c0.569-2.019,1.129-4.039,1.659-6.069
c0.82-3.03,1.61-6.07,2.44-9.1C566.18,112.14,544.57,125.96,522.92,139.74"/>
</g>
</g>
<g>
<defs>
<rect id="SVGID_7_" width="841.89" height="595.276"/>
</defs>
<clipPath id="SVGID_8_">
<use xlink:href="#SVGID_7_" overflow="visible"/>
</clipPath>
<path clip-path="url(#SVGID_8_)" fill="#FFFFFF" d="M364.67,277c-0.28-0.13-0.55-0.26-0.81-0.4c0.25,0.05,0.5,0.09,0.72,0.13
C364.62,276.85,364.65,276.94,364.67,277"/>
<g id="leftLeg">
<path clip-path="url(#SVGID_8_)" d="M334.77,353.049c-0.39,0.381-0.8,0.771-1.22,1.16c-0.02,0.021-0.04,0.03-0.05,0.04
c-0.85,0.78-1.7,1.521-2.54,2.21c-0.05-0.18-0.12-0.359-0.19-0.529c-0.17-0.44-0.38-0.851-0.61-1.23
c-0.05-0.08-0.09-0.15-0.15-0.219c-0.16-0.222-0.34-0.421-0.52-0.611c-1.01-1.07-2.16-1.59-3.53-1.74
c-1.36-0.148-2.85,0.062-4.32,0.62c-1.49,0.521-2.89,1.401-4.43,2.54c0.01-0.05,0.02-0.099,0.04-0.149v-0.011
c0.02-0.14,0.05-0.269,0.1-0.398c0-0.012,0-0.021,0.01-0.031c0.44-1.66,1.52-3.17,2.99-4.259c0.83-0.602,1.8-1.071,2.83-1.352
c0-0.01,0.01-0.01,0.02,0c1.18-0.47,2.59-0.8,4.04-0.819c0.06-0.011,0.12-0.011,0.18-0.011c1.87-0.09,3.59,0.381,4.88,1.37
c0.78,0.57,1.34,1.28,1.74,2c0.01,0.021,0.02,0.03,0.02,0.051c0.2,0.35,0.36,0.721,0.48,1.069c0.02-0.019,0.05-0.04,0.07-0.069
C334.67,352.799,334.72,352.93,334.77,353.049"/>
<path clip-path="url(#SVGID_8_)" d="M406.73,318.429c-0.13,1.472-0.26,2.94-0.4,4.4c-0.98,1.05-2.95,3.1-5.71,5.56
c-0.79,0.7-1.65,1.44-2.57,2.19c-3.11,2.56-6.91,5.33-11.22,7.741c-0.07,0.04-0.13,0.08-0.19,0.108
c-8.27,4.602-18.4,7.86-29.07,5.83c-0.02,0-0.05-0.01-0.07-0.01c-1.62-0.16-3.18-0.4-4.67-0.69c-1.15,0.7-2.27,1.41-3.36,2.172
c-0.04,0.019-0.07,0.039-0.11,0.068c-2.31,1.721-4.22,3.5-5.77,5.182c-0.21,0.21-0.4,0.429-0.59,0.639
c-0.06,0.14-0.12,0.29-0.18,0.439c-0.01,0.021-0.01,0.03-0.03,0.052c-0.05,0.099-0.1,0.198-0.17,0.299h0.05
c-0.03,0.06-0.06,0.13-0.09,0.201c-0.52,1.139-1.24,2.46-2.22,3.83c-0.02,0.028-0.04,0.05-0.05,0.068v0.011
c-0.62,1.011-1.32,2-2.17,2.869c-1.13,1.131-2.43,2.012-3.75,2.74c-0.04,0.021-0.08,0.05-0.12,0.071
c-0.32,0.209-0.61,0.389-0.89,0.549c-0.26,0.09-0.54,0.201-0.84,0.321c-0.03,0.009-0.05,0.019-0.08,0.04
c-0.66,0.309-1.3,0.59-1.92,0.858c-0.06,0.03-0.12,0.051-0.18,0.08c-0.01,0-0.02,0-0.03,0.01c-1.85,0.91-4.06,2.24-6.27,4.132
c-0.01,0.01-0.02,0.019-0.03,0.028c-3.79,3.682-6.49,8.602-8.86,13.66c0.01-0.099,0.04-0.21,0.07-0.309
c-0.33-1.821-0.76-5.642,0.76-10.071c0.38-1.12,0.84-2.139,1.35-3.049c0.05-0.121,0.11-0.22,0.17-0.331
c0.37-0.771,0.82-1.53,1.33-2.259c0.88-1.271,1.6-1.96,2.75-2.821c0.03-0.02,0.05-0.04,0.06-0.04c0.37-0.29,0.77-0.59,1.25-0.929
c0.02-0.012,0.03-0.021,0.04-0.031c1.21-0.88,2.83-2.049,5.15-3.91c0.95-0.76,1.83-1.479,2.67-2.2c0.07,0.17,0.14,0.352,0.19,0.53
c0.84-0.689,1.69-1.429,2.54-2.21c0.01-0.009,0.03-0.019,0.05-0.04c0.42-0.389,0.83-0.78,1.22-1.16c-0.05-0.12-0.1-0.25-0.16-0.37
c3.17-2.8,5.81-5.6,8.08-9.14c0.84-1.32,1.38-2.339,1.75-3.219c0.01-0.021,0.01-0.04,0.02-0.062c0.96-4.188,2.56-7.33,4.16-9.64
c0.67-0.969,1.52-1.919,2.52-2.85l0.01-0.011c7.19-6.688,22.12-12.13,35.15-13.309c2.46-0.231,4.84-0.3,7.1-0.191
C398.97,314.5,403.73,315.79,406.73,318.429"/>
<path clip-path="url(#SVGID_8_)" d="M353.71,365.04c-0.27,1.28-0.78,2.479-1.47,3.53c-0.85,1.47-2.021,2.811-3.53,3.9
c-0.01,0.02-0.01,0.02-0.02,0.02c-0.24,0.24-0.5,0.46-0.76,0.65c0.02-0.061,0.05-0.121,0.07-0.181c-0.08,0.06-0.17,0.11-0.25,0.16
c0.57-1.12,0.95-2.189,1.22-3.16c0.03-0.13,0.07-0.27,0.1-0.399c0.07-0.271,0.13-0.521,0.17-0.771c0.02-0.1,0.04-0.189,0.05-0.279
c0.14-0.761,0.21-1.521,0.22-2.261c0.05-2.23-0.46-4.38-1.5-6.119c-1.02-1.74-2.58-2.931-4.72-3.421
c-0.71-0.149-1.43-0.229-2.18-0.26h-0.08c-0.22-0.01-0.44-0.01-0.67-0.01c0.98-1.37,1.7-2.69,2.22-3.83
c0.03-0.07,0.06-0.14,0.09-0.2c1.11-0.05,2.2,0.08,3.23,0.391c0.01,0,0.02,0,0.03,0.01c0.39,0.109,0.77,0.25,1.14,0.42
c0.53,0.11,1.06,0.27,1.57,0.479c0.03,0.011,0.07,0.021,0.1,0.04c0.35,0.131,0.68,0.301,1.01,0.49c1.25,0.75,2.22,1.851,2.91,3.04
C354.05,359.709,354.3,362.53,353.71,365.04"/>
</g>
<g id="rightLeg">
<path clip-path="url(#SVGID_8_)" d="M501.26,355.25c-1.55-1.14-3.76-1.979-5.25-2.5c-1.45-0.56-2.939-0.77-4.3-0.62
c-0.15,0.021-0.3,0.04-0.44,0.061h-0.01c-0.17,0.05-0.33,0.12-0.5,0.189c-1.399,0.62-2.46,1.87-3.109,3.471
c-0.091,0.2,0.159,0.109,0.1,0.319c-0.84-0.689-2.02-1.14-2.87-1.92c-0.439-0.399-0.86-0.8-1.27-1.199
c0.06-0.141,0.12-0.28,0.189-0.431c0.36-0.779,0.87-1.55,1.58-2.24l0.04-0.039c0.23-0.261,0.48-0.49,0.771-0.711
c1.369-1.06,3.21-1.52,5.189-1.359c0.05,0,0.08,0,0.12,0.01c1.74,0.08,3.39,0.59,4.63,1.22
C499.51,351.209,500.88,354.31,501.26,355.25"/>
<path clip-path="url(#SVGID_8_)" d="M503.33,380.23v0.011c-0.021,0.188-0.04,0.37-0.07,0.54v0.028c-0.01,0.2-0.02,0.4-0.04,0.602
c-0.01-0.031-0.02-0.062-0.029-0.102c-0.021,0.11-0.04,0.222-0.061,0.32c-0.74-2.389-2.09-5.67-4.62-9
c-4.701-6.179-10.67-8.839-13.5-9.879c-1.66-0.96-4.14-2.67-6.38-5.5c-0.189-0.241-0.37-0.491-0.56-0.731v-0.01l-0.012-0.009
c-1-1.39-1.729-2.741-2.259-3.89c-0.03-0.07-0.06-0.142-0.09-0.21c-0.12-0.271-0.229-0.53-0.33-0.771
c-1.81-2.049-4.16-4.28-7.12-6.379c-0.84-0.601-1.689-1.151-2.529-1.661h-0.011c-1.7,0.33-3.489,0.59-5.35,0.75h-0.01
c-8.841,1.531-17.24-0.639-24.41-4.08c-0.3-0.148-0.601-0.29-0.892-0.438c-3.039-1.521-5.849-3.271-8.368-5.03
c-0.671-0.481-1.32-0.951-1.95-1.42c-5.31-3.991-9.05-7.852-10.48-9.37c2.41-1.981,4.83-3.97,7.25-5.951
c19.25-3.799,36.83-0.319,46.11,9.891c-0.021,0.02-0.03,0.029-0.05,0.04c1.199,1.341,2.359,2.921,3.46,4.819
c0.45,0.76,0.8,1.431,1.08,2.021c0.109,0.229,0.21,0.47,0.31,0.71c0.62,1.479,0.82,2.528,1.28,3.83
c0.01,0.028,0.02,0.059,0.03,0.09c0.369,1.059,0.939,2.318,2.069,4.09c2.25,3.509,4.87,6.29,8,9.08
c-0.069,0.148-0.13,0.29-0.189,0.429c0.409,0.401,0.83,0.8,1.27,1.201c0.851,0.78,2.03,1.229,2.87,1.919
c0.059-0.21-0.191-0.12-0.1-0.32c0.88,0.75,1.819,1.49,2.79,2.28c6.159,4.96,7.3,5.01,9.199,7.771
c1.051,1.488,1.83,3.059,2.38,4.63c0.011,0.028,0.021,0.059,0.03,0.08c0.12,0.29,0.23,0.59,0.33,0.89
C503.35,374.321,503.41,378.259,503.33,380.23"/>
<path clip-path="url(#SVGID_8_)" d="M478.06,356.5c-0.02,0-0.029,0-0.04,0.011c0,0-0.01-0.011-0.02,0
c-1.53-0.181-3.38-0.04-5.12,0.989c-2.049,1.21-2.99,3.091-3.25,3.63c-1.02,2.101-0.88,4.011-0.75,5.75
c0.08,1,0.28,2.461,0.87,4.16c0.23,0.66,0.51,1.36,0.88,2.09c-6.5-3.949-7.82-12.13-4.25-16.75c1.48-1.899,3.76-3.18,6.34-3.619
c0.96-0.28,1.971-0.4,2.99-0.36c0.03,0.07,0.06,0.14,0.09,0.21C476.331,353.76,477.06,355.11,478.06,356.5"/>
</g>
<g id="head">
<defs>
<rect id="SVGID_9_" width="841.89" height="595.276"/>
</defs>
<clipPath id="SVGID_10_">
<use xlink:href="#SVGID_9_" overflow="visible"/>
</clipPath>
<path clip-path="url(#SVGID_10_)" fill="#FFFFFF" d="M428.34,249.549c3.45-3.66,6.88-7.32,10.33-10.97
c-4.86-0.87-9.729-1.729-14.59-2.6c-0.14-0.02-0.271-0.05-0.41-0.07c0.44-1.78,0.89-3.56,1.33-5.33
c-5.12-0.71-14.34-1.49-25.33,0.66c-3.65,0.71-7.28,1.71-10.86,2.94c-26.38,9.08-49.2,30.89-45.48,45.73
c0.27,1.09,0.76,2.44,1.74,3.96c0.82,1.971,2.06,3.91,3.94,5.49c2.35,1.98,4.96,2.8,6.85,3.15c0.25,0.05,0.5,0.09,0.72,0.129
c-0.37-1.189-1.38-5.049-0.36-9.159c0.37-1.53,1.03-3.1,2.11-4.57c2.35-3.19,5.53-4.48,6.87-4.92c4.56-1.5,9.51-1.28,14.06,0.27
c12.021,4.1,24.05,8.21,36.07,12.32c0.01-0.13,0.03-0.25,0.04-0.38c0.08-0.77,0.161-1.54,0.229-2.31
c0.58-5.66,1.16-11.32,1.73-16.98c4.67-1,9.34-2,14-3l-0.39-1.62C430.08,258.039,429.21,253.799,428.34,249.549 M380.51,259.169
l-7.95,0.07l5.07-6.62l8.31,0.73L380.51,259.169z"/>
</g>
</g>
</svg>
svg {
transform: translate(200px, 200px);
perspective: 1200px;
transform-style: preserve-3d;
transition: all 1s ease;
}
circle {
z-index: 100;
}
.leftWingCl {
-webkit-animation: clapWings 2s 1 ease forwards;
animation: clapWings 2s 1 ease forwards;
}
.rightWingCl {
-webkit-animation: clapWings2 2s .05s 1 ease forwards;
animation: clapWings2 2s .05s 1 ease forwards;
}
.eagleCl {
-webkit-animation: movement 2s 1 ease forwards;
animation: movement 2s 1 ease forwards;
}
.headCl {
-webkit-animation: headMove 2s .1s 1 ease forwards;
animation: headMove 2s .1s 1 ease forwards;
}
.rightLegCl {
-webkit-animation: rightLegMove 2s .15s 1 ease forwards;
animation: rightLegMove 2s .15s 1 ease forwards;
}
.rightLegCl {
-webkit-animation: rightLegMove 2s .15s 1 ease forwards;
animation: rightLegMove 2s .15s 1 ease forwards;
}
.leftLegCl {
-webkit-animation: leftLegMove 2s .3s 1 ease forwards;
animation: leftLegMove 2s .3s 1 ease forwards;
}
.feather1Cl {
-webkit-animation: featherMove 2s .05s 1 ease forwards;
animation: featherMove 2s .05s 1 ease forwards;
}
.feather2Cl {
-webkit-animation: featherMove 2s .1s 1 ease forwards;
animation: featherMove 2s .1s 1 ease forwards;
}
.feather3Cl {
-webkit-animation: featherMove2 2s .15s 1 ease forwards;
animation: featherMove2 2s .15s 1 ease forwards;
}
.feather4Cl {
-webkit-animation: featherMove2 2s .2s 1 ease forwards;
animation: featherMove2 2s .2s 1 ease forwards;
}
/* #eagle {
/* animation: movement 2s 1 ease forwards;
} */
#leftWing {
/* animation: clapWings 2s 1 ease forwards; */
transform: rotateZ(0deg);
}
#rightWing {
/* animation: clapWings2 2s .05s 1 ease forwards; */
transform: rotateY(0deg);
}
#head {
/* animation: headMove 2s .1s 1 ease forwards; */
}
#rightLeg {
/* animation: rightLegMove 2s .15s 1 ease forwards; */
}
#leftLeg {
/* animation: rightLegMove 2s .15s 1 ease forwards; */
}
@keyframes clapWings {
0% {
transform-origin: 417px 328px; transform:perspective(500px) rotateZ(0deg) ;
animation-timing-function: ease;
}
50% {
transform-origin: 417px 328px;
transform:perspective(500px) rotateZ(-15deg);
animation-timing-function: ease;
}
100% {
transform-origin: 417px 328px;
transform:perspective(500px) rotateZ(0deg);
animation-timing-function: ease;
}
}
@keyframes clapWings2 {
0% {
transform-origin: 417px 328px;
transform: perspective(500px) rotateY(0deg);
animation-timing-function: ease;
}
50% {
transform-origin: 417px 328px;
transform: perspective(500px) rotateY(10deg) rotateX(5deg);
animation-timing-function: ease;
}
100% {
transform-origin: 417px 328px;
transform: perspective(500px) rotateY(0deg);
animation-timing-function: ease;
}
}
@keyframes movement {
0% {
transform: translate(0, 0);
}
50% {
transform: translate(10px, -20px);
}
0% {
transform: translate(0, 0);
}
}
@keyframes leftLegMove {
0% {
transform-origin: 397px 321px;
transform: rotateZ(0deg);
animation-timing-function: ease;
}
25% {
transform-origin: 397px 321px;
transform: rotateZ(-25deg);
animation-timing-function: ease;
}
50% {
transform-origin: 397px 321px;
transform: rotateZ(-25deg);
animation-timing-function: ease;
}
100% {
transform-origin: 397px 321px;
transform: rotateZ(0deg);
animation-timing-function: ease;
}
}
@keyframes rightLegMove {
0% {
transform-origin: 422px 324px;
transform: rotateZ(0deg);
animation-timing-function: ease;
}
25% {
transform-origin: 422px 324px;
transform: rotateZ(25deg);
animation-timing-function: ease;
}
50% {
transform-origin: 422px 324px;
transform: rotateZ(25deg);
animation-timing-function: ease;
}
100% {
transform-origin: 422px 324px;
transform: rotateZ(0deg);
animation-timing-function: ease;
}
}
@keyframes headMove {
0% {
transform-origin: 417px 262px;
transform: rotateZ(0deg);
animation-timing-function: ease;
}
25% {
transform-origin: 417px 262px;
transform: rotateZ(-10deg);
animation-timing-function: ease;
}
50% {
transform-origin: 417px 262px;
transform: rotateZ(-10deg);
animation-timing-function: ease;
}
100% {
transform-origin: 417px 262px;
transform: rotateZ(0deg);
animation-timing-function: ease;
}
}
@keyframes featherMove {
0% {
transform-origin: 417px 301px;
transform: rotateZ(0deg);
animation-timing-function: ease;
}
25% {
transform-origin: 384px 301px;
transform: rotateZ(-10deg);
animation-timing-function: ease;
}
45% {
transform-origin: 384px 301px;
transform: rotateZ(0deg);
animation-timing-function: ease;
}
60% {
transform-origin: 384px 301px;
transform: rotateZ(-10deg);
animation-timing-function: ease;
}
75% {
transform-origin: 384px 301px;
transform: rotateZ(0deg);
animation-timing-function: ease;
}
90% {
transform-origin: 384px 301px;
transform: rotateZ(-10deg);
animation-timing-function: ease;
}
100% {
transform-origin: 384px 301px;
transform: rotateZ(0deg);
animation-timing-function: ease;
}
}
@keyframes featherMove2 {
0% {
transform-origin: 433px 302px;
transform: rotateZ(0deg);
animation-timing-function: ease;
}
25% {
transform-origin: 433px 302px;
transform: rotateZ(10deg);
animation-timing-function: ease;
}
45% {
transform-origin: 433px 302px;
transform: rotateZ(0deg);
animation-timing-function: ease;
}
60% {
transform-origin: 433px 302px;
transform: rotateZ(10deg);
animation-timing-function: ease;
}
75% {
transform-origin: 433px 302px;
transform: rotateZ(0deg);
animation-timing-function: ease;
}
90% {
transform-origin: 433px 302px;
transform: rotateZ(10deg);
animation-timing-function: ease;
}
100% {
transform-origin: 433px 302px;
transform: rotateZ(0deg);
animation-timing-function: ease;
}
}
$("svg").ready(function() {
$("#leftWing").addClass("leftWingCl")
setTimeout(function () {
$('#leftWing').removeClass("leftWingCl");
}, 2000);
$("#rightWing").addClass("rightWingCl")
setTimeout(function () {
$('#rightWing').removeClass("rightWingCl");
}, 2000);
$("#eagle").addClass("eagleCl")
setTimeout(function () {
$('#eagle').removeClass("eagleCl");
}, 2000);
$("#head").addClass("headCl")
setTimeout(function () {
$('#head').removeClass("headCl");
}, 2000);
$("#rightLeg").addClass("rightLegCl")
setTimeout(function () {
$('#rightLeg').removeClass("rightLegCl");
}, 2000);
$("#leftLeg").addClass("leftLegCl")
setTimeout(function () {
$('#leftLeg').removeClass("leftLegCl");
}, 2000);
$("#feather1").addClass("feather1Cl")
setTimeout(function () {
$('#feather1').removeClass("feather1Cl");
}, 2000);
$("#feather2").addClass("feather2Cl")
setTimeout(function () {
$('#feather2').removeClass("feather2Cl");
}, 2000);
$("#feather3").addClass("feather3Cl")
setTimeout(function () {
$('#feather3').removeClass("feather3Cl");
}, 2000);
$("#feather4").addClass("feather4Cl")
setTimeout(function () {
$('#feather4').removeClass("feather4Cl");
}, 2000);
});
$(".eagle").mouseenter(function() {
$("#leftWing").addClass("leftWingCl")
setTimeout(function () {
$('#leftWing').removeClass("leftWingCl");
}, 2000);
$("#rightWing").addClass("rightWingCl")
setTimeout(function () {
$('#rightWing').removeClass("rightWingCl");
}, 2000);
$("#eagle").addClass("eagleCl")
setTimeout(function () {
$('#eagle').removeClass("eagleCl");
}, 2000);
$("#head").addClass("headCl")
setTimeout(function () {
$('#head').removeClass("headCl");
}, 2000);
$("#rightLeg").addClass("rightLegCl")
setTimeout(function () {
$('#rightLeg').removeClass("rightLegCl");
}, 2000);
$("#leftLeg").addClass("leftLegCl")
setTimeout(function () {
$('#leftLeg').removeClass("leftLegCl");
}, 2000);
$("#feather1").addClass("feather1Cl")
setTimeout(function () {
$('#feather1').removeClass("feather1Cl");
}, 2000);
$("#feather2").addClass("feather2Cl")
setTimeout(function () {
$('#feather2').removeClass("feather2Cl");
}, 2000);
$("#feather3").addClass("feather3Cl")
setTimeout(function () {
$('#feather3').removeClass("feather3Cl");
}, 2000);
$("#feather4").addClass("feather4Cl")
setTimeout(function () {
$('#feather4').removeClass("feather4Cl");
}, 2000);
});
Also see: Tab Triggers