JavaScript preprocessors can help make authoring JavaScript easier and more convenient. For instance, CoffeeScript can help prevent easy-to-make mistakes and offer a cleaner syntax and Babel can bring ECMAScript 6 features to browsers that only support ECMAScript 5.
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.
You are linking to a resource using the non-secure http:// protocol, which may not work when the browser is using https:// like CodePen enforces.
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.
xxxxxxxxxx
<div class="container">
<div class="elements">
<!-- Cloudy -->
<div class="element">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 60.7 40" style="enable-background:new 0 0 60.7 40;" xml:space="preserve">
<g id="Cloud_1">
<g id="White_cloud_1">
<path id="XMLID_2_" class="white" d="M47.2,40H7.9C3.5,40,0,36.5,0,32.1l0,0c0-4.3,3.5-7.9,7.9-7.9h39.4c4.3,0,7.9,3.5,7.9,7.9v0 C55.1,36.5,51.6,40,47.2,40z"/>
<circle id="XMLID_3_" class="white" cx="17.4" cy="22.8" r="9.3"/>
<circle id="XMLID_4_" class="white" cx="34.5" cy="21.1" r="15.6"/>
<animateTransform attributeName="transform"
attributeType="XML"
dur="6s"
keyTimes="0;0.5;1"
repeatCount="indefinite"
type="translate"
values="0;5;0"
calcMode="linear">
</animateTransform>
xxxxxxxxxx
* {
margin: 0;
padding: 0;
}
.element {
height: 50px;
width: 50px;
margin: 10px;
}
.container {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
height: 100vh;
background: linear-gradient(to bottom, #57c1eb 0%,#246fa8 100%);
}
.elements {
display: flex;
justify-content: center;
flex-wrap: wrap;
xxxxxxxxxx
Also see: Tab Triggers