Pen Settings



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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

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


Add Packages

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.


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.


                     <div id="splash">
      <svg id="coreBadge" width="800" height="600" xmlns="" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" strokelinecap="round">
  <path class="badge" d="M311.07 378.452l81.66-212.625h30.321l87.006 212.625h-32.055L453.2 314.046h-88.912l-23.341 64.406H311.07zm61.362-87.327h72.08l-22.203-58.887c-6.758-17.871-11.783-32.574-15.075-44.084-2.722 13.638-6.534 27.178-11.46 40.619l-23.342 62.352z" fill-rule="nonzero" stroke="#0096ff" stroke-width="7.42581"/>

    <!-- Hud -->
    <div id="hud">
        <div id="hudGenius">
            <p class="engage" id="engage">..some trial text</p><br>
          <p class="engage" id="init">..additional text</p>



                body {
    margin: 0;
    background-color: #000000;

#badge {
    visibility: hidden;
#hud {
    position: fixed;
    display: block;
    width: 100%;
    bottom: 15%;
.engage {
    text-align: right;
    display: block;
    font-family: SourceCodeProRegular;
    text-transform: lowercase;
    color: #8cecff;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 1px;
    padding: 0;
    margin-right: 20px;
    margin-top: 0;
    margin-bottom: 0;
    //position: absolute;
#coreBadge {
    visibility: hidden;
#splash {
  margin-top: -80px;
  margin-left: -80px;



var readOut = new Howl({
  src: ['', ''], loop: false
var hudPowerOn = new Howl({ src: ['', ''], loop: false

function player (sound) {;
function playerStop (sound) {

//Draw the badge
function drawBadge (){
    TweenLite.set("#coreBadge", {visibility:"visible"});
    //Splash screen animation//
    var tl = new TimelineMax();
    tl.from(".badge", 0.6, { drawSVG: 0, delay: 0.2 })"#splash", 0.6, {autoAlpha: 0, display:"none"});
    return tl;

//Run the text
function runText (textLine) {
  TweenLite.set(textLine, {visibility:"visible"});
  var mySplitText = new SplitText(textLine, { type: "chars" }),
  tl = new TimelineMax();
  tl.staggerFrom(mySplitText.chars, 0.01, { opacity: 0 }, 0.04)
    .eventCallback("onStart", player, [readOut])
    .eventCallback("onComplete", playerStop, [readOut]);
  return tl;

function openDisplay () {
  var tl = new TimelineMax({id:"openDisplay"});
            {scaleX: 1,
             scaleY: 0.01,
             delay: 0.5})
             {borderColor: "rgba(140, 236, 255, 0.5)",
              backgroundColor: "rgba(140, 236, 255, 0.05)"})
            {scaleX: 1,
             scaleY: 1,
             borderTop: 0.5,
             borderBottom: 0.5,
             delay: 0.1});
  return tl;

var masterTL = new TimelineMax();
masterTL.add(drawBadge(), 0)
.call(player, [hudPowerOn])
.add(runText("#hudGenius"), 2.35)