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 Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
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.
<div class="wrapper">
<h1>IN BETWEEN OFFICE VISITS</h1>
<!--START SECTION-->
<button class="skyBlue" id="btn0"><img src="http://hilarystoddard.com/temp/house.svg" class="button-icon" />
<h2>Home visit</h2>
</button>
<div class="panel panel0">
<!-- START MARIA -->
<div class="art right">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0" y="0" viewBox="0 0 270.8 330.4" xml:space="preserve">
<style type="text/css">
.st0{fill:none;}
.st1{fill:#231F20;}
.st2{fill:none;stroke:#000000;stroke-width:9.6;}
.st3{fill:#B1B951;}
.st4{fill:#FFFFFF;}
.st5{opacity:8.000000e-02;fill:url(#SVGID_1_);}
.st6{fill:#E6E7E8;}
.st7{fill:#DC4A38;}
.st8{fill:#D9E026;}
.st9{fill:#27100C;}
.st10{fill:#1A1A1A;}
.st11{fill:#373737;}
.st12{fill:#3C3C3B;}
.st13{fill:#9C7862;}
.st14{fill:#E0ADA6;}
.st15{fill:#CB8C85;}
.st16{fill:url(#SVGID_2_);}
.st17{fill:#926E5B;}
.st18{fill:url(#SVGID_3_);}
.st19{fill:#DB9D95;}
.st20{fill:#B09077;}
.st21{fill:#A8816A;}
.st22{fill:#482B12;}
.st23{fill:#432B12;}
.st24{fill:#885D55;}
.st25{fill:#2B1310;}
</style>
<pattern x="-341.2" y="-461.6" width="28.8" height="28.8" patternUnits="userSpaceOnUse" id="_x31_0_dpi_10_x25_" viewBox="0.7 -29.5 28.8 28.8">
<rect x="0.7" y="-29.5" class="st0" width="28.8" height="28.8"/>
<circle class="st1" cx="29.5" cy="-0.7" r="0.7"/>
<circle class="st1" cx="15.1" cy="-0.7" r="0.7"/>
<circle class="st1" cx="29.5" cy="-15.1" r="0.7"/>
<circle class="st1" cx="15.1" cy="-15.1" r="0.7"/>
<circle class="st1" cx="7.9" cy="-7.9" r="0.7"/>
<circle class="st1" cx="22.3" cy="-7.9" r="0.7"/>
<circle class="st1" cx="7.9" cy="-22.3" r="0.7"/>
<circle class="st1" cx="22.3" cy="-22.3" r="0.7"/>
<circle class="st1" cx="0.7" cy="-0.7" r="0.7"/>
<circle class="st1" cx="0.7" cy="-15.1" r="0.7"/>
<circle class="st1" cx="29.5" cy="-29.5" r="0.7"/>
<circle class="st1" cx="15.1" cy="-29.5" r="0.7"/>
<circle class="st1" cx="0.7" cy="-29.5" r="0.7"/>
</pattern>
<pattern x="-341.2" y="-461.6" width="72" height="72" patternUnits="userSpaceOnUse" id="_x36__lpi_80_x25_" viewBox="72.2 -72 72 72">
<rect x="72.2" y="-72" class="st0" width="72" height="72"/>
<line class="st2" x1="144" y1="-6" x2="216.5" y2="-6"/>
<line class="st2" x1="144" y1="-30" x2="216.5" y2="-30"/>
<line class="st2" x1="144" y1="-54" x2="216.5" y2="-54"/>
<line class="st2" x1="144" y1="-18" x2="216.5" y2="-18"/>
<line class="st2" x1="144" y1="-42" x2="216.5" y2="-42"/>
<line class="st2" x1="144" y1="-66" x2="216.5" y2="-66"/>
<line class="st2" x1="72" y1="-6" x2="144.5" y2="-6"/>
<line class="st2" x1="72" y1="-30" x2="144.5" y2="-30"/>
<line class="st2" x1="72" y1="-54" x2="144.5" y2="-54"/>
<line class="st2" x1="72" y1="-18" x2="144.5" y2="-18"/>
<line class="st2" x1="72" y1="-42" x2="144.5" y2="-42"/>
<line class="st2" x1="72" y1="-66" x2="144.5" y2="-66"/>
<line class="st2" x1="0" y1="-6" x2="72.5" y2="-6"/>
<line class="st2" x1="0" y1="-30" x2="72.5" y2="-30"/>
<line class="st2" x1="0" y1="-54" x2="72.5" y2="-54"/>
<line class="st2" x1="0" y1="-18" x2="72.5" y2="-18"/>
<line class="st2" x1="0" y1="-42" x2="72.5" y2="-42"/>
<line class="st2" x1="0" y1="-66" x2="72.5" y2="-66"/>
</pattern>
<path class="st3" d="M270.8 330.4v-27.3c-19.2-1.7-40-2.7-61.7-2.7 -79.5 0-146.8 12.6-169.1 30H270.8z"/>
<path id="cloud1" class="st4" d="M67.1 47.5C69 46 70 44.2 70 42.3c0-5.5-8.8-10-20-10.5 -2.1-3.6-6.9-6-12.6-6 -2.8 0-5.5 0.6-7.7 1.7 -1.8-1.1-3.8-1.7-6-1.7 -4.5 0-8.3 2.5-10.3 6.1 -0.5-0.1-1-0.1-1.5-0.1C5.3 31.8 0 37.1 0 43.7 0 49.3 3.9 54 9.1 55.3c0 0.1 0 0.2 0 0.3 0 5.6 5.9 10.2 13.2 10.2 4.4 0 8.4-1.7 10.8-4.3 3.9 1.3 8.6 2.1 13.8 2.1 12.8 0 23.2-4.8 23.2-10.8C70 50.8 69 49.1 67.1 47.5z"/>
<path id="cloud2" class="st4" d="M122.2 75.9c0.2-0.5 0.4-1 0.4-1.5 0-3-4-5.3-8.8-5.3 -2.6 0-4.9 0.7-6.5 1.7 -2.2-0.7-5.1-1.1-8.2-1.1 -6.8 0-12.4 2-12.4 4.4 0 0.4 0.2 0.8 0.5 1.2 -4.3 0.9-7.4 3.3-7.4 6.3 0 3.6 4.8 6.6 10.8 6.6 3.2 0 6-0.9 8-2.2 2 0.4 4.2 0.6 6.6 0.6 0.5 0 0.9 0 1.4 0 0.2 0 0.4 0 0.6 0 0.6 0 1.2-0.1 1.7-0.2 2.5-0.2 4.7-0.7 6.4-1.3 1 0.9 2.4 1.5 3.8 1.5 3.2 0 5.8-2.6 5.8-5.8C124.8 78.7 123.7 76.9 122.2 75.9z"/>
<g id="house">
<polygon class="st4" points="270.8 0 143.2 0.7 143.2 305.1 270.8 330.3 "/>
<pattern id="SVGID_1_" xlink:href="#_x36__lpi_80_x25_" patternTransform="matrix(1 0 0 1 64 5)"/>
<polygon class="st5" points="270.8 0 143.2 0.7 143.2 305.1 270.8 330.3 "/>
<polygon class="st6" points="223.8 140.8 169.5 130.1 169.5 28.1 223.8 38.8 "/>
</g>
<g id="door">
<path class="st7" d="M163.3 19.6v289.5l62.7 12.2V31.8L163.3 19.6zM192.8 112.3l-19-3.8V76.2l19 3.8V112.3zM192.8 77.2l-19-3.8V41.2l19 3.8V77.2zM215.1 116.6l-19-3.8V80.6l19 3.8V116.6zM215.1 81.5l-19-3.8V45.5l19 3.8V81.5z"/>
<path class="st8" d="M213.9 168.6c0 2.4-2.4 4.6-5.4 4.9 -3 0.3-5.4-1.5-5.4-3.9s2.4-4.6 5.4-4.9C211.5 164.4 213.9 166.1 213.9 168.6z"/>
</g>
<g id="Maria">
<g id="legs">
<ellipse class="st9" cx="120.9" cy="191" rx="18.7" ry="20.8"/>
<path class="st9" d="M119.2 198.4l13.6 51.2 3.4 61.3h10.8v-56.3c0 0 2.8-6.5 0-8.8l-7.7-59L119.2 198.4z"/>
<path class="st9" d="M103.1 195.3l5.6 52.6 -8.3 61 12.6 1.7 11.3-55.5c0 0 4.6-5.9 1.8-8.6l2.9-59.4L103.1 195.3z"/>
</g>
<g id="briefcase">
<path class="st10" d="M115.3 259.9H95.5c-8.8 0-15.9-7.2-15.9-15.9v0c0-8.8 7.2-15.9 15.9-15.9h19.8c8.8 0 15.9 7.2 15.9 15.9v0C131.2 252.7 124 259.9 115.3 259.9z"/>
<path class="st11" d="M120.9 255.1h-4.1V252H94.1v3.1h-4.1V252H79.6c0 4.3 3.5 7.7 7.7 7.7h36.1c4.3 0 7.7-3.5 7.7-7.7h-10.3V255.1z"/>
<path class="st12" d="M98.7 221.1c0-0.3 0.2-0.5 0.5-0.5h12.4c0.3 0 0.5 0.2 0.5 0.5v4.1H98.7V221.1zM116.3 225.2v-4.1c0-2.6-2.1-4.6-4.6-4.6H99.2c-2.6 0-4.6 2.1-4.6 4.6v4.1h-15V250h10.3v-6.7h4.1v6.7h22.7v-6.7h4.1v6.7h10.3v-24.8H116.3z"/>
</g>
<g id="leftFoot">
<path class="st13" d="M159.9 318.3h-24v-7.4h16.6C156.5 310.9 159.9 314.3 159.9 318.3L159.9 318.3z"/>
<path class="st10" d="M152.5 310.9h-0.6c0.1 0.3 0.2 0.6 0.2 0.9 0 2.4-4.2 2.8-9.5 2.8 -2.6 0-5-0.5-6.7-1.3v5h24l0 0C159.9 314.3 156.5 310.9 152.5 310.9z"/>
</g>
<g id="rightFoot">
<path class="st13" d="M123.5 318.5l-23.9-2.2 0.7-7.3 16.5 1.5C120.9 310.8 123.9 314.4 123.5 318.5L123.5 318.5z"/>
<path class="st10" d="M116.8 310.5l-0.6-0.1c0.1 0.3 0.1 0.6 0.1 0.9 -0.2 2.4-4.5 2.4-9.7 1.9 -2.6-0.2-4.9-0.9-6.5-1.9l-0.4 5 23.9 2.2 0 0C123.9 314.4 120.9 310.8 116.8 310.5z"/>
</g>
<path class="st14" d="M152.2 160.2c-0.5-2.5-1.7-4.6-3.1-5.6 0 0 0 0 0 0 -0.6-2.6-3.2-13.6-4.4-17.3 -0.8-2.6-1.6-5.1-2.7-7.6 -1.9-4.3-5.1-9.2-10.5-8.3 -10 1.8 0.3 16.5 2.2 21 3.4 8 6.4 14.5 9.1 22.8 0.4 1.1 4.6 3 6.1 2.9 0 0 0 0 0 0 0.1 0 0.3 0 0.4 0C151.7 167.6 153 164.1 152.2 160.2z"/>
<path class="st15" d="M135.9 183.2h-26.7l-12.5-53.9c-0.2-3 2.1-5.6 5.1-5.8l30.5-2.1c3.8-0.2 7.1 2.2 7.4 6L135.9 183.2z"/>
<pattern id="SVGID_2_" xlink:href="#_x31_0_dpi_10_x25_" patternTransform="matrix(0.3325 0 0 0.3325 -4929.8174 -4678.9546)"/>
<path class="st16" d="M135.9 183.2h-26.7l-12.5-53.9c-0.2-3 2.1-5.6 5.1-5.8l30.5-2.1c3.8-0.2 7.1 2.2 7.4 6L135.9 183.2z"/>
<g id="neck">
<rect x="113.3" y="103.4" class="st17" width="11.5" height="24.9"/>
<linearGradient id="SVGID_3_" gradientUnits="userSpaceOnUse" x1="122.87" y1="128.33" x2="122.87" y2="103.43">
<stop offset="0" stop-color="#9C7862"/>
<stop offset="0.18" stop-color="#95725E"/>
<stop offset="0.45" stop-color="#836454"/>
<stop offset="0.79" stop-color="#674E43"/>
<stop offset="1" stop-color="#553F37"/>
</linearGradient>
<rect x="120.9" y="103.4" class="st18" width="3.9" height="24.9"/>
</g>
<polygon class="st14" points="118.3 132.9 107.7 123.3 111.4 120.5 122 128.8 "/>
<polygon class="st14" points="122 128.3 126.2 120 132.3 121.3 124.3 132.5 "/>
<path class="st13" d="M111.4 221c0 2.4-3 2.8-6.7 2.8s-6.7-2-6.7-4.4c0-1.1-0.1-3.6 0.9-4.4 1.2-0.9 3.8 0 5.8 0C108.4 215 111.4 218.6 111.4 221z"/>
<path class="st17" d="M98.3 220.6c0.8 1.8 3.4 3.2 6.4 3.2 3.7 0 6.7-0.3 6.7-2.8 0-0.2 0-0.3 0-0.5 -1.9 0.6-4.2 0.9-6.7 0.9C102.4 221.5 100.2 221.2 98.3 220.6z"/>
<path class="st19" d="M107.5 176.4l27.9 1.2 9.3 10.7c0 0.6-2.6 1-5.7 0.9l-31.9-0.9c-4-0.1-7.3-0.7-7.3-1.4L107.5 176.4z"/>
<polygon class="st13" points="106.4 217.3 99.4 217.3 99.4 211.8 105 211.8 "/>
<path class="st14" d="M105.9 144.5c0.5-4.9 6.2-22-4.1-20.8 -9.7 1.1-7.7 16.4-8.3 23.6 -0.6 7.7-1.2 15.3-1.9 23l6.5 43.8 6.9 0c-0.9-8.3-2.3-16.5-3.4-24.8 -0.9-7.2-2.5-15.3-1.2-22.5C101.8 159.3 105.1 152 105.9 144.5z"/>
<polygon class="st15" points="106.4 214.1 96.7 214.1 96.7 209.5 105 209.5 "/>
<path class="st17" d="M111.4 221c0-1.8-1.6-4.2-4-5.4 1.1 1.4 1.7 3.1 1.7 4.9 0 1.1-0.2 2.1-0.6 3C110.3 223.2 111.4 222.5 111.4 221z"/>
<g id="leftArm">
<path class="st14" d="M152.8 164.7c1.1-1.5 1.8-3.2 2.3-4.9 1.1-3.5 1.6-7.2 2.2-10.9 0.9-5.1 1.7-10.2 2.6-15.2 0.1-0.7 1.1-4.2 1.1-4.2l-5.8-3.4c-0.4 1.8-0.7 3.5-1.1 5.3 -1 4.7-3.3 11.4-4.3 16.1 -0.6 3-0.7 7.6-0.7 7.6s0-0.2-0.1-0.5c0 1.5 0 2.9 0 4.4 0 3.1 0.1 6.1 0.2 9.1C150.6 167.8 152.1 165.8 152.8 164.7z"/>
<polygon class="st13" points="156.6 119.3 161.3 121.3 159.8 128.1 154.9 125.5 "/>
<path class="st13" d="M158.2 123c-2.7-1.2-1.9-4.1-0.5-7.5 1.5-3.4 4.9-5.2 7.6-4 1.3 0.6 4.5 3 4.1 4.4 -1 3.8-2.5 1.5-3.3 3.3C164.7 122.6 161 124.2 158.2 123z"/>
<polygon class="st15" points="154.8 122.8 163.3 127.4 161.2 131.4 153.8 127.5 "/>
</g>
<g id="head">
<polygon class="st20" points="120 65.7 120 65.7 120 65.7 "/>
<path class="st13" d="M131 89.8c-0.1-3.2-0.4-6.5-1.3-9.5 0-0.2-0.1-0.3-0.1-0.5 -1.1-3.7-3.1-6.9-5.6-9 -0.2-0.1-0.3-0.3-0.5-0.4 -0.3-0.3-0.7-0.5-1-0.7 0 0 0 0 0 0 -0.2-0.1-0.3-0.2-0.5-0.3 0 0 0 0 0 0 0 0 0 0 0 0v0c-1.8-0.9-3.8-1.5-5.7-1.6 -2.6-0.1-5.2 0.9-7.3 2.7 -0.8 0.7-1.6 1.6-2.3 2.5 -2 2.7-3.2 6.2-3.8 9.7 -1.4 7.7 0 16 3.5 22.7 1.8 3.4 4.2 6.4 7.1 8.4 2.6 1.8 5.6 2.7 8.6 2.2 0 0 0 0 0 0 0.3 0 0.6-0.1 0.9-0.2 2.9-0.8 5.6-3.5 6.8-7.2 0.6-1.9 0.8-4 1-6C131 98.4 131.1 94.1 131 89.8z"/>
<path class="st21" d="M120.9 116.2c0.3 0 0.6 0 0.9-0.1 0 0 0 0 0 0 0.3 0 0.6-0.1 0.9-0.2 2.9-0.8 5.6-3.5 6.8-7.2 0.6-1.9 0.8-4 1-6 0.3-4.2 0.5-8.5 0.3-12.8 -0.1-3.2-0.4-6.5-1.3-9.5 0-0.2-0.1-0.3-0.1-0.5 -1.1-3.7-3.1-6.9-5.6-9 -0.2-0.1-0.3-0.3-0.5-0.4 -0.3-0.3-0.7-0.5-1-0.7 0 0 0 0 0 0 -0.2-0.1-0.3-0.2-0.5-0.3 0 0 0 0 0 0 0 0 0 0 0 0v0c-0.8-0.4-1.6-0.7-2.4-1L120.9 116.2z"/>
<polygon class="st17" points="124.7 100.3 120 100.7 120.1 88.1 "/>
<path class="st22" d="M115.6 86.7c0.5 0 1.1 0 1.6 0.1 -0.4-1.4-2-2.4-3.9-2.4 -2.2 0-4 1.4-4 3.2 0 0.6 0.2 1.2 0.6 1.6C110.1 87.9 112.5 86.7 115.6 86.7z"/>
<path class="st22" d="M127.3 86.8c0.4 0.3 0.8 0.6 1.1 0.9 0.8-1.2 0.5-2.8-0.8-3.8 -1.6-1.2-4.2-1.1-5.7 0.2 -0.5 0.4-0.8 1-1 1.5C122.3 84.7 125.1 85.2 127.3 86.8z"/>
<circle class="st23" cx="115.5" cy="91.3" r="1.8"/>
<circle id="rightEye" class="st4" cx="116" cy="90.9" r="0.4"/>
<circle class="st23" cx="124.5" cy="90" r="1.8"/>
<circle id="leftEye" class="st4" cx="125.4" cy="89.5" r="0.4"/>
<path class="st24" d="M126.5 104.2c0 0-3.9-1-4.6-0.3l-0.3 0.8 -0.7-0.7c0 0-2-0.1-4.2 1.1 0 0 2 2.6 4.9 2.3C121.6 107.5 124.2 107.9 126.5 104.2z"/>
<path class="st25" d="M135.5 71.9c-1.2-4-4.6-7-8.4-8.6 -3.4-1.4-7-1.8-10.6-1.9 -3.3-0.1-7 1.1-10 2.5 -0.7 0.3-1.3 0.7-1.9 1.1 -3.1 2-5.6 5.2-5.7 8.9 -3.3 0.9-5.7 3.9-6.6 7.2 -0.9 3.3-0.4 6.8 0.5 10 1 3.2 2.4 6.3 3.7 9.5 2 5.1 3.3 10.5 4.3 15.9 0.5 2.7 1 5.7-0.2 8.2 3 1.2 6.4-1.2 7.6-4.1s0.7-6.3 0.3-9.5c-0.5-3.7-1-7.4-1.3-11.1 -2.3-0.1-4.1-2-4.1-4.3 0-2.1 1.5-3.8 3.5-4.2 -0.1-3.2-0.1-6.3 0-9.5 0.1-2.9 0.5-5.9 1.9-8.5 1.4-2.6 4.2-4.6 7.1-4.2 0.4 0 0.9 0.2 1.2 0.4 0 0 0 0 0 0 0.4 0.3 0.7 0.9 0.9 1.4 1.5 3.4 3.4 6.9 6.6 8.9s7.9 1.9 10.2-1C136 77 136.2 74.3 135.5 71.9z"/>
</g>
</g>
</svg>
</div>
<!-- END MARIA -->
<div class="inner-text">
<h3>WHAT IS IT?</h3>
<p>A personal care counselor makes either a one-time or recurring visit to your high-risk, high-acuity patient’s home.</p>
<div class="outcomes">
<h3>MEASURABLE IMPACT</h3>
<div class="outcomes-icons">
<img src="http://hilarystoddard.com/temp/readmissions.svg" class="icon icon1">
<img src="http://hilarystoddard.com/temp/meds.svg" class="icon icon2">
<img src="http://hilarystoddard.com/temp/appointments.svg" class="icon icon3">
</div> <!--END ICONS-->
</div> <!--END OUTCOMES-->
</div>
</div>
<!--END SECTION-->
<!--START SECTION-->
<button class="orange"><img src="http://hilarystoddard.com/temp/clock.svg" class="button-icon" /><h2>Appointment facilitation</h2></button>
<div class="panel panel1">
<img src="http://hilarystoddard.com/temp/EDbuildings.svg" class="art left" />
<div class="inner-text right">
<h3>WHAT IS IT?</h3>
<p>A personal care counselor provides patients with appointment reminders, pre-appointment and assistance with transportation to their appointment (if applicable). Co-pay assistance available for qualifying patients who have recently visited the ED and need to follow-up with a PCP.</p>
<div class="outcomes right">
<h3>MEASURABLE IMPACT</h3>
<div class="outcomes-icons">
<img src="http://hilarystoddard.com/temp/readmissions.svg" class="icon icon1">
<img src="http://hilarystoddard.com/temp/meds.svg" class="icon icon2">
<img src="http://hilarystoddard.com/temp/appointments.svg" class="icon icon3">
</div> <!--END ICONS-->
</div> <!--END OUTCOMES-->
</div>
</div>
<!--END SECTION-->
<!--START SECTION-->
<button class="orange"><img src="http://hilarystoddard.com/temp/clock.svg" class="button-icon" /><h2>Chronic condition management</h2></button>
<div class="panel panel2">
<div class="inner-text right">
<h3>WHAT IS IT?</h3>
<p>A personal care counselor provides telephonic care management to your patient with diabetes, COPD, asthma, heart failure, sickle cell disease or ongoing mental health/substance abuse concerns. The counselor provides support with setting and accomplishing long-term, disease specific health goals. Telephonic sessions include diet and exercise counseling, patient education, medication review and adherence discussions.</p>
<div class="outcomes cccgray right">
<h3 class="dukeBlue">MEASURABLE IMPACT</h3>
<div class="outcomes-icons">
<img src="http://hilarystoddard.com/temp/EDvisits.svg" class="icon icon1">
<img src="http://hilarystoddard.com/temp/meds.svg" class="icon icon2">
<img src="http://hilarystoddard.com/temp/appointments.svg" class="icon icon3">
</div> <!--END ICONS-->
</div> <!--END OUTCOME SECTION-->
</div>
</div>
<!--END SECTION-->
</div> <!--END WRAPPER!-->
h1, h2, h3, p {
font-family: "Open Sans";
color: #FFF;
}
h1 {
font-size:28px;
color: #666;
font-weight: 300;
}
h2 {
font-size: 23px;
font-weight: 300;
line-height: 23px;
margin:5px;
}
h3 {
font-size: 16px;
font-weight: 700;
}
p{
font-size: 14px;
color: #FFF;
}
.dukeBlue {
color: #00539B;
}
.button-icon {
float: left;
width: 23px;
height: 23px;
margin:5px 15px 5px 0px;
}
/* UNIQUE BUTTON STYLES*/
.skyBlue {
background: #00b4d1;
}
.orange {
background: orange;
}
/* UNIQUE PANEL STYLES*/
.panel {
overflow:hidden;
position:relative;
}
.panel0 {
background: #00b4d1;
}
.panel1 {
background: orange;
}
.panel2 {
background: orange;
}
.panel7 {
background: orange;
}
.right {
float:right;
}
.left {
float:left;
}
.inner-text{
top: 0;
z-index: 100;
width: 60%;
padding: 20px;
}
.outcomes {
background: #00539B;
padding: 5px 0px 10px 20px;
}
.cccgray {
background-color: #CCCCCC;
}
.icon {
width: 30%;
display: inline-block;
margin-right: 2%;
}
.wrapper {
width: 80%;
max-width: 770px;
margin: 2em auto 10em auto;
position:relative;
}
button {
width: 100%;
font-size: 16px;
color: #FFF;
cursor: pointer;
padding: 10px 20px;
margin: 5px 0 0 0;
text-align: left;
outline: none;
border: none;
}
/*START ART*/
#Maria {
padding-right: 10px;
width: 50%;
}
.art {
width: 30%;
margin:0px;
padding:0px;
}
#cloud1, #cloud2 {
opacity:.2;
}
$("button").each(function(index, element){
//this introduces child elements in sequence
var introAnimation = new TimelineLite({paused:true})
introAnimation.from(".panel" +index + " h3", 0.5, {x:500, opacity:0})
.from(".panel" +index + " p", 0.5, {x:500, opacity:0})
.from(".panel" +index + " .art", 1, {opacity:0}, '+=1')
.to(".panel0 #leftArm", .1, {rotation:20, transformOrigin:"left bottom"})
.to(".panel0 #leftArm", .1, {rotation:0, transformOrigin:"left bottom"})
.to(".panel0 #leftArm", .1, {rotation:20, transformOrigin:"left bottom"})
.to(".panel0 #leftArm", .1, {rotation:0, transformOrigin:"left bottom"})
.to(".panel0 #leftArm", .1, {rotation:20, transformOrigin:"left bottom"})
.from(".panel0 .outcomes", .2, {opacity:0}, '+=1')
.from(".panel0 .outcomes-title", 0, {opacity:0}, '+=1')
.from(".panel0 .icon1", 0.3, {y:500, opacity:0})
.from(".panel0 .icon2", 0.3, {y:500, opacity:0})
.from(".panel0 .icon3", 0.3, {y:500, opacity:0});
//Cloud looper
var cloudAnimation = new TimelineLite({onComplete:looper})
cloudAnimation.to(".panel0 path#cloud1", 10, {x:100}, 0)
.to(".panel0 path#cloud2", 8, {x:-50}, 0)
.to(".panel0 path#cloud1", 10, {x:0})
.to(".panel0 path#cloud2", 8, {x:50}, '-=10');
function looper() {
cloudAnimation.restart();
}
//this animation opens or closes the panel
element.openAnimation = TweenMax.from(".panel" + index, 1,{height:0, paused:true, onReverseComplete:resetIntro, onReverseCompleteScope:this});
element.introAnimation = introAnimation;
element.open = false; //panels closed by default
element.index = index;
//this gets triggered by openAnimation's onReverseCompleteCallback so that things get reset when panel closes
function resetIntro() {
this.introAnimation.pause(0);
}
function playIntro() {
//if the introAnimation is partially revealed then keep playing it forward
// this condition is necessary if people click open / close very quickly.
if(this.introAnimation.progress() > 0){
this.introAnimation.play()
} else {
this.introAnimation.restart();
}
}
// figure out what to do on each click based on whether or not panel is open or closed
$(this).click(function(){
// if panel isn't open then play the openAnimation and 0.5 seoconds later play the introAnimation
if(!this.open){
this.openAnimation.play();
//0.5 seconds after telling the open animation to play, call a function that will play the introAnimation
TweenLite.delayedCall(0.5, playIntro, null, this);
this.open = true;
} else {
//panel is open, lets close it
this.openAnimation.reverse()
this.open = false;
}
});
});
Also see: Tab Triggers