Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

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.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                 <svg style="display: none;" xmlns="http://www.w3.org/2000/svg"><symbol id="codepen-logo" viewBox="0 0 120 120"><path class="outer-ring" d="M60.048 0C26.884 0 0 26.9 0 60.048s26.884 60 60 60.047c33.163 0 60.047-26.883 60.047-60.047 S93.211 0 60 0z M60.048 110.233c-27.673 0-50.186-22.514-50.186-50.186S32.375 9.9 60 9.9 c27.672 0 50.2 22.5 50.2 50.186S87.72 110.2 60 110.233z"/><path class="inner-box" d="M97.147 48.319c-0.007-0.047-0.019-0.092-0.026-0.139c-0.016-0.09-0.032-0.18-0.056-0.268 c-0.014-0.053-0.033-0.104-0.05-0.154c-0.025-0.078-0.051-0.156-0.082-0.232c-0.021-0.053-0.047-0.105-0.071-0.156 c-0.033-0.072-0.068-0.143-0.108-0.211c-0.029-0.051-0.061-0.1-0.091-0.148c-0.043-0.066-0.087-0.131-0.135-0.193 c-0.035-0.047-0.072-0.094-0.109-0.139c-0.051-0.059-0.104-0.117-0.159-0.172c-0.042-0.043-0.083-0.086-0.127-0.125 c-0.059-0.053-0.119-0.104-0.181-0.152c-0.048-0.037-0.095-0.074-0.145-0.109c-0.019-0.012-0.035-0.027-0.053-0.039L61.817 23.5 c-1.072-0.715-2.468-0.715-3.54 0L24.34 46.081c-0.018 0.012-0.034 0.027-0.053 0.039c-0.05 0.035-0.097 0.072-0.144 0.1 c-0.062 0.049-0.123 0.1-0.181 0.152c-0.045 0.039-0.086 0.082-0.128 0.125c-0.056 0.055-0.108 0.113-0.158 0.2 c-0.038 0.045-0.075 0.092-0.11 0.139c-0.047 0.062-0.092 0.127-0.134 0.193c-0.032 0.049-0.062 0.098-0.092 0.1 c-0.039 0.068-0.074 0.139-0.108 0.211c-0.024 0.051-0.05 0.104-0.071 0.156c-0.031 0.076-0.057 0.154-0.082 0.2 c-0.017 0.051-0.035 0.102-0.05 0.154c-0.023 0.088-0.039 0.178-0.056 0.268c-0.008 0.047-0.02 0.092-0.025 0.1 c-0.019 0.137-0.029 0.275-0.029 0.416V71.36c0 0.1 0 0.3 0 0.418c0.006 0 0 0.1 0 0.1 c0.017 0.1 0 0.2 0.1 0.268c0.015 0.1 0 0.1 0.1 0.154c0.025 0.1 0.1 0.2 0.1 0.2 c0.021 0.1 0 0.1 0.1 0.154c0.034 0.1 0.1 0.1 0.1 0.213c0.029 0 0.1 0.1 0.1 0.1 c0.042 0.1 0.1 0.1 0.1 0.193c0.035 0 0.1 0.1 0.1 0.139c0.05 0.1 0.1 0.1 0.2 0.2 c0.042 0 0.1 0.1 0.1 0.125c0.058 0.1 0.1 0.1 0.2 0.152c0.047 0 0.1 0.1 0.1 0.1 c0.019 0 0 0 0.1 0.039L58.277 96.64c0.536 0.4 1.2 0.5 1.8 0.537c0.616 0 1.233-0.18 1.77-0.537 l33.938-22.625c0.018-0.012 0.034-0.027 0.053-0.039c0.05-0.035 0.097-0.072 0.145-0.109c0.062-0.049 0.122-0.1 0.181-0.152 c0.044-0.039 0.085-0.082 0.127-0.125c0.056-0.055 0.108-0.113 0.159-0.172c0.037-0.045 0.074-0.09 0.109-0.139 c0.048-0.062 0.092-0.127 0.135-0.193c0.03-0.049 0.062-0.098 0.091-0.146c0.04-0.07 0.075-0.141 0.108-0.213 c0.024-0.051 0.05-0.102 0.071-0.154c0.031-0.078 0.057-0.156 0.082-0.234c0.017-0.051 0.036-0.102 0.05-0.154 c0.023-0.088 0.04-0.178 0.056-0.268c0.008-0.045 0.02-0.092 0.026-0.137c0.018-0.139 0.028-0.277 0.028-0.418V48.735 C97.176 48.6 97.2 48.5 97.1 48.319z M63.238 32.073l25.001 16.666L77.072 56.21l-13.834-9.254V32.073z M56.856 32.1 v14.883L43.023 56.21l-11.168-7.471L56.856 32.073z M29.301 54.708l7.983 5.34l-7.983 5.34V54.708z M56.856 88.022L31.855 71.4 l11.168-7.469l13.833 9.252V88.022z M60.048 67.597l-11.286-7.549l11.286-7.549l11.285 7.549L60.048 67.597z M63.238 88.022V73.14 l13.834-9.252l11.167 7.469L63.238 88.022z M90.794 65.388l-7.982-5.34l7.982-5.34V65.388z"/></symbol></svg>

<main role="main">
  <section>
    <header class="cp-header">
      <svg class="cp-logo"><use xlink:href="#codepen-logo"></use></svg>
      <h1 class="cp-title"><b>Chicago</b> CodePen Meetup</h1>
      <p class="cp-callout">Presenting the 1<sup>st</sup></p>
    </header>

    <div class="cp-info">
      <p class="cp-par">Grabba pop or a beer, and write a couple-two-tree lines a code!</p>
      <p class="cp-par"><time datetime="2015-04-13 18:30">Monday, April 13<sup>th</sup> from 6:30</time> to <time datetime="2015-04-13 20:30">8:30pm</time> at <a href="http://workshopchicago.co">Workshop Chicago</a> — 935 W Chestnut.</p>
    </div>
  </section>
  
  <footer class="cp-footer">
    <a href="https://nvite.com/CodePenChicago/abfd">Seeya dare!</a>
    <a href="https://twitter.com/search?q=%23CodePenChicago">#CodePenChicago</a>
  </footer>
</main>
              
            
!

CSS

              
                /* --- RULES & INSTRUCTIONS --- 
  The only rule is that all of the information in
  the original markup has to be used — you can change
  the markup and move things around as you like as long
  as all of the info is still present.

  Fork this pen and add some CSS and/or JavaScript —
  any flavor, any library, any plugin you like — to 
  jazz dis baby up a bit. Further instructions on
  how to submit your pen will be given at the event,
  but feel free to leave a comment on the original
  pen linking to your fork for review — the submissions
  with the most hearts or something like that will win
  some killer CodePen gear!

  examples of others:
  https://codepen.io/chriscoyier/pen/oAcua
  https://codepen.io/sdras/pen/LEqWNM
  https://codepen.io/pixelass/pen/dPwaJv
  https://codepen.io/indyplanets/pen/XJGVoY/
  https://codepen.io/Hornebom/pen/iKsmj

  Happy forking!
*/

@import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);
@import url(https://fonts.googleapis.com/css?family=Playball);


html,body {height: 100%;}body{display: flex;flex-direction:column;align-items: center;justify-content:center;width:100%;background: #0C0C0D;color: #919191;}


body {
  font: normal 100%/1.5 'Montserrat', sans-serif;
}

main {
  max-width: 480px;
  padding: 1em;
}

a {
  text-decoration: none;

  &:link,
  &:visited {
    color:#4EDCFF
  }
  &:hover,
  &:focus,
  &:active {
    color:white
  }
}

[class*="cp-"] {
  opacity: 0;
}

.cp-header {
  text-align: center;
}

.cp-logo {
  fill: white;
}

.cp-callout {
  font-family: 'Playball', cursive;
  color: white;
}

.cp-title {
  font-size: xx-large;
  font-weight: 700;
  text-transform: uppercase;

  b {
    display: block;
    font-family: 'Playball', cursive;
    line-height: 1;
    text-transform: capitalize;
    color: white;
  }
}

footer {
  display: flex;
  justify-content: space-between;
}
              
            
!

JS

              
                var tmax_tl  = new TimelineMax(),
    elements = $('[class*="cp-"]'),
    stagger  = 0.0675,
    duration = 1;

var staggerFrom = {
  scale: 0,
  opacity: 0,
  transformOrigin: 'center center',
};

var staggerTo = {
  opacity: 1,
  scale: 1,
  ease: Elastic.easeInOut
};

tmax_tl
  .staggerFromTo(elements, duration, staggerFrom, staggerTo, stagger, 0)
  .fromTo($('.cp-logo'), 1.5, {
      rotation: 0
		}, {
  		rotation: 360,
  		yoyo:true,
			repeat: -1,
		  ease: Ease.easeInOut
		}, "-=0.25");
              
            
!
999px

Console