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.
<html>
<head>
<title>Powertools Arrow Graph</title>
<link href="https://fonts.googleapis.com/css?family=Muli:300,400,800" rel="stylesheet">
</head>
<body><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0" y="0" viewBox="0 0 612 792" enable-background="new 0 0 612 792" xml:space="preserve" width="500">
<style>
.s0 {
stop-color: #FFFFFF;
}
</style> <g id="dot">
<path fill="#010101" d="M65.4 715.6c0 4.4-3.5 7.9-7.9 7.9 -4.4 0-7.9-3.5-7.9-7.9 0-4.4 3.5-7.9 7.9-7.9C61.8 707.7 65.4 711.2 65.4 715.6" />
</g>
<g id="bottom">
<line fill="none" stroke="#010101" stroke-miterlimit="10" x1="60.7" y1="715.6" x2="570.2" y2="715.6" />
</g>
<g id="top">
<line fill="none" stroke="#010101" stroke-miterlimit="10" x1="57.5" y1="707.7" x2="57.5" y2="58.9" />
</g>
<g id="bottom_x5F_arrow">
<polygon fill="#010101" points="563.4 723.4 576.9 715.6 563.4 707.7 " />
</g>
<g id="top_x5F_arrow">
<polygon fill="#010101" points="65.3 58.9 57.5 45.4 49.6 58.9 " />
</g>
<g id="headline" class="animated">
<text transform="matrix(1 0 0 1 75.3107 80.127)">
<tspan x="0" y="0" fill="#399B60" font-size="27.21">
THE POWERTOOLS
</tspan>
</text>
<text transform="matrix(1 0 0 1 75.3107 113.6173)">
<tspan x="0" y="0" fill="#399B60" font-size="27.21">
PLATFORM EFFECT
</tspan>
</text>
</g>
<g id="information">
<text transform="matrix(1 0 0 1 75.3107 138.7266)">
<tspan x="0" y="0" fill="#010101" font-size="20.93">
As the market becomes more
</tspan>
</text>
<text transform="matrix(1 0 0 1 75.3107 163.8409)">
<tspan x="0" y="0" fill="#010101" font-size="20.93">
complex, Power Tools Platform
</tspan>
</text>
<text transform="matrix(1 0 0 1 75.3107 188.9561)">
<tspan x="0" y="0" fill="#010101" font-size="20.93">
works exponentially to increase
</tspan>
</text>
<text transform="matrix(1 0 0 1 75.3107 214.0704)">
<tspan x="0" y="0" fill="#010101" font-size="20.93">
insights and maxmize
</tspan>
</text>
<text transform="matrix(1 0 0 1 75.3107 239.1856)">
<tspan x="0" y="0" fill="#010101" font-size="20.93">
resources, saving you
</tspan>
</text>
<text transform="matrix(1 0 0 1 75.3107 264.2999)">
<tspan x="0" y="0" fill="#010101" font-size="20.93">
time and money.
</tspan>
</text>
</g>
<g id="cta">
<text transform="matrix(1 0 0 1 75.3107 314.5294)">
<tspan x="0" y="0" fill="#010101" font-size="20.93">
Evolve with us.
</tspan>
</text>
</g>
<g id="graph_x5F_labels">
<text transform="matrix(1 0 0 1 191.1954 742.3267)">
<tspan x="0" y="0" fill="#010101" font-size="23.02">
MARKET DATA COMPLEXITY
</tspan>
</text>
<text transform="matrix(-6.123234e-017 -1 1 1.767661e-016 49.5382 507.1046)">
<tspan x="0" y="0" fill="#010101" font-size="23.02">
INSIGHT AND EXPERTISE
</tspan>
</text>
</g>
<g id="grey_x5F_platform">
<polygon fill="#BDBEC0" points="88.8 625.3 58.7 625.3 58.7 685.8 88.8 685.8 88.8 685.8 327.6 685.8 558.1 685.8 558.1 634.3 558.1 625.3 " />
</g>
<g id="first_x5F_label">
<text transform="matrix(1 0 0 1 97.7745 661.0884)">
<tspan x="0" y="0" fill="#010101" font-size="16.74">
TIMES PAST
</tspan>
</text>
</g>
<g id="second_x5F_label">
<text transform="matrix(1 0 0 1 266.6064 458.4082)" display="inline">
<tspan x="-50" y="65" fill="#010101" font-size="16.74">
POWERTOOLS
</tspan>
</text>
</g>
<g id="arrow_x5F_shadow">
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="219.06" y1="655.53" x2="422.33" y2="655.53">
<stop offset="0" stop-color="#010101" />
<stop offset="0.07" stop-color="#212020" />
<stop offset="0.17" stop-color="#42403F" />
<stop offset="0.28" stop-color="#605E5E" />
<stop offset="0.4" stop-color="#7D7B7C" />
<stop offset="0.52" stop-color="#969596" />
<stop offset="0.65" stop-color="#AAAAAB" />
<stop offset="0.8" stop-color="#B7B8BA" />
<stop offset="1" stop-color="#BCBEC0" />
</linearGradient>
<rect x="219.1" y="625.3" fill="url(#SVGID_1_)" width="203.3" height="60.6" />
</g>
<g id="black_x5F_arrow_x5F_final" display="none">
<path display="inline" d="M364.4 321.4c-0.6 28.6 0.4 57.1 0.6 85.7 0.1 27.4-10.7 52.7-30.7 71.8 -12.3 11.8-27.9 19.7-44.5 23.2 -1.2 0.2-22.1 3.2-22.1 2 0 0 0 28.9 0 28.9s49.8 3.3 89.5-34.9 37-91.2 37-91.2l-0.9-85.7 28 27.9 17.4-17.4 -59.8-59.8L319 331.9l17.4 17.4L364.4 321.4z" />
</g>
<g id="arrow_x5F_final" class="animated">
<path fill="#6BB488" d="M408.2 502.7c-4.9 12.5-11.1 24.5-18.5 35.8 -5.4 8.2-11.5 16.1-18 23.3 -1 1.1-2 2.2-3 3.2 12 16.4 24.8 32.2 38.3 47.4 26.3-26.1 46.9-58 59.5-92.5 1.4-3.8 2.7-7.7 3.9-11.6 -8.2-10.6-16.1-21.4-23.5-32.5L408.2 502.7z" />
<path fill="#399B60" d="M421.4 433.5c-0.1 23.9-4.6 47.2-13.2 69.2l38.7-26.9C437.8 462.1 429.3 448 421.4 433.5" />
<path fill="#A67B30" d="M326.5 264.8l36.5 36.5 16.6-16.6c-5.9-19.1-10.7-38.6-14.5-58.5L326.5 264.8z" />
<path class="blink animated" fill="#9CCDAF" d="M470.4 508.3c5.7-18.3 9.3-37.2 10.8-56.4l-34.3 23.9C454.3 486.9 462.2 497.7 470.4 508.3" />
<path class="blink animated" fill="#BC9C64" d="M458.6 201.4l-93.4 24.7 -0.1 0.1c3.7 19.9 8.6 39.4 14.5 58.5l41.9-41.9v75.4l60.6-28v-5.7C471.6 257.9 463.7 230 458.6 201.4" />
<path fill="#A67B30" d="M421.4 432.7c0 0.3 0 0.6 0 0.8 7.9 14.5 16.4 28.6 25.5 42.2l34.3-23.9c0.4-5 0.7-9.9 0.7-14.9l0-0.9c0-1.1 0-2.3 0-3.4V290.2l-60.6 28V432.7z" />
<path fill="#D2BD97" d="M452 139.8l-0.2-0.2 -86.5 86.5 93.4-24.7C455 181.2 452.8 160.7 452 139.8" />
<path class="blink animated" fill="#A67B30" d="M502 189.9l-50-50c0.8 20.9 3 41.4 6.6 61.5L502 189.9z" />
<path fill="#BC9C64" d="M553.2 241L502 189.9l-43.4 11.5c5.1 28.7 13 56.5 23.4 83.2v-41.7l32.4 32.4 43.9-20.3 6-2.8L553.2 241z" />
<polygon fill="#A67B30" points="564.3 252.2 558.3 254.9 514.4 275.2 540.5 301.3 566.9 274.9 576.9 264.8 " />
<path fill="#FFFFFF" d="M482 290.2l1.9-0.9c-0.6-1.6-1.2-3.2-1.9-4.8V290.2z" />
<path fill="#FFFFFF" d="M365.1 226.1C365.1 226.1 365.1 226.2 365.1 226.1l0.1 0L365.1 226.1z" />
<path class="blink animated" fill="#006D9B" d="M407 612.3c-13.5-15.2-26.3-31-38.3-47.4 -11 11.6-23.3 21.8-36.6 30.2v68.6c27.5-12.3 52.7-29.6 74.4-50.9C406.6 612.7 406.8 612.5 407 612.3" />
<path fill="#4092B4" d="M318.5 603.1l-34.3 76.6c3.1-0.7 6.3-1.5 9.4-2.3 13.2-3.5 26-8.1 38.4-13.6v-68.6C327.7 598 323.2 600.6 318.5 603.1" />
<path fill="#7FB6CD" d="M284.3 617.1c-4 1.2-8.1 2.3-12.2 3.2 -9.6 2.2-19.3 3.6-29 4.4 -3.6 0.3-7.2 0.4-10.8 0.5 -0.7 0-1.4 0-2.1 0 -0.3 0-0.8 0-1.2 0h-9.8v9.1 51.5h9.8c18.7 0 37.3-2.1 55.4-6.1l34.3-76.6C307.6 608.8 296.2 613.5 284.3 617.1" />
<path fill="none" stroke="#010101" stroke-width="0.5" stroke-miterlimit="10" d="M219.1 685.8" />
<path fill="none" stroke="#010101" stroke-width="0.5" stroke-miterlimit="10" d="M219.1 535.1" />
</g>
<g id="arrow_x5F_div">
<line fill="none" stroke="#010101" stroke-width="0.5" stroke-miterlimit="10" x1="219.1" y1="535.1" x2="219.1" y2="685.8" />
</g>
</svg>
</body>
</html>
body { font-family: 'Muli', sans-serif;}
#headline { letter-spacing: 2px; font-weight: 800;}
#information { font-weight: 300;}
#cta { font-weight: 800;}
#graph_x5F_labels, #first_x5F_label, #second_x5F_label { font-weight: 300;}
#dot, #top, #top_x5F_arrow, #headline, #information, #cta, #graph_x5F_labels, #grey_x5F_platform, #first_x5F_label, #second_x5F_label, #arrow_x5F_shadow, #black_x5F_arrow_x5F_final, #arrow_x5F_final, #arrow_x5F_div { visibility: hidden;}
(function($) {
var $bottom_line = $('#bottom'),
$bottom_arrow = $('#bottom_x5F_arrow'),
$dot = $('#dot'),
$top_line = $('#top'),
$top_arrow = $('#top_x5F_arrow'),
$headline = $('#headline'),
$info = $('#information'),
$cta = $('#cta'),
$graph_labels = $('#graph_x5F_labels'),
$grey_box = $('#grey_x5F_platform'),
$first_label = $('#first_x5F_label'),
$second_label = $('#second_x5F_label'),
$arrow_shadow = $('#arrow_x5F_shadow'),
$black_arrow = $('#black_x5F_arrow_x5F_final'),
$color_arrow = $('#arrow_x5F_final'),
$arrow_div = $('#arrow_x5F_div'),
$color_block = $('.blink'),
mainTl = new TimelineMax();
function clearStage() {
var clearTl = new TimelineMax();
clearTl
.set($bottom_line, {
scale: 0,
transformOrigin: '0% 0%'
})
.set($top_line, {
scale: 0,
transformOrigin: '100% 100%'
})
.set($bottom_arrow, {
x: -416,
autoAlpha: 0
})
.set($dot, {
autoAlpha: 0
})
.set($top_arrow, {
y: 530,
autoAlpha: 0
})
.set($arrow_shadow, {autoAlpha: 0})
.set($color_arrow, {autoAlpha:0, scale:0, transformOrigin: '0% 100%'})
.set([$headline, $info, $cta, $graph_labels, $grey_box, $first_label, $second_label, $black_arrow, $arrow_div], {
autoAlpha: 0,
scale:0
});
return clearTl;
}
function getIntroTl() {
var introTl = new TimelineMax();
introTl
.to($dot, 0.5, {
autoAlpha: 1,
ease: Power4.easeInOut
}, 'dot')
.to($top_arrow, 0.5, {
autoAlpha: 1,
y: 0,
ease: Power4.easeInOut
}, 'dot+=0.2')
.to($top_line, 0.5, {
scale: 1,
ease: Power4.easeInOut,
autoAlpha: 1
}, 'dot+=0.2')
.to($bottom_arrow, 0.5, {
autoAlpha: 1,
x: 0,
ease: Power4.easeInOut
}, 'dot+=0.2')
.to($bottom_line, 0.5, {
scale: 1,
ease: Power4.easeInOut,
autoAlpha: 1
}, 'dot+=0.2')
.to($graph_labels, 0.5, {
autoAlpha: 1,
scale: 1,
ease: Power3.easeInOut
});
return introTl;
}
function getScene2Tl() {
var scene2Tl = new TimelineMax();
scene2Tl
.to($grey_box, 0.5, {
scale: 1,
autoAlpha: 1,
transformOrigin: '0% 0%'
})
.to($first_label, 0.5, {
autoAlpha: 1,
scale: 1
}, '-=0.5');
return scene2Tl;
}
function getScene3Tl() {
var scene3Tl = new TimelineMax();
scene3Tl
.to($headline,1, {
autoAlpha: 1,
scale: 1
}, '-=2')
.to($info, 1, {
autoAlpha: 1,
scale: 1
}, '-=1')
.to($cta, 1, {
autoAlpha: 1,
scale: 1
}, "-=0.5");
return scene3Tl;
}
function getScene4Tl() {
var scene4Tl = new TimelineMax();
scene4Tl
.to($arrow_div, 0.5, {
autoAlpha: 1, scale:1
})
.to($second_label, 0.5, {
autoAlpha: 1, scale:1
}, '-=1')
.to($color_arrow, 1, {
autoAlpha: 1, scale:1
}, 'color_arrow')
.to($arrow_shadow, 1, {
autoAlpha: 1, scale: 1});
return scene4Tl;
}
function getFlashLightsTl() {
var flashLightsTl = new TimelineMax({ delay: 0.25, repeat: -1, yoyo: true, repeatDelay: 0.25 });
flashLightsTl
.set($color_block, { className: '-=flash' }, '+=1')
.set($color_block, { className: '+=flash' }, '+=1')
return flashLightsTl;
}
function init() {
mainTl
.add(clearStage())
.add(getIntroTl(), 'introTl')
.add(getScene2Tl(), 'scene2Tl')
.add(getScene4Tl(), 'scene3Tl')
.add(getScene3Tl(), 'scene4Tl')
.add(getFlashLightsTl(), 'blinking');
}
init();
})(jQuery);
Also see: Tab Triggers