Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

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.

+ 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.


Auto Save

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 class=heroEffects>
    <div class=bg>
        <div class="arrow bouncy"> 
            <svg height="25" width="50">
                <polygon points="0,0 25,10 50,0 25,25" fill="rgba(255,255,255, 1)" stroke-width="1" stroke="rgbz(0,0,0,1)"/>
        <div class="title centerV">
                <div class=text> 
                    <h1>Hero Effects</h1>
                    <p>Fork of:</p>
                    <p>Wanna try no jQuery yo.</p>
    <div class=shade></div>

<div class=content></div>


*::after {
  box-sizing: border-box;

body {
  font-family: 'Julius Sans One', sans-serif;

.heroEffects {
  height: 100vh;
  position: relative;
  z-index: -1;
  top: 0;
  left: 0;
.heroEffects .bg {
  height: 100vh;
  position: fixed;
  width: 100%;
  background-image: url("");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  transform: scale(1);
.heroEffects .shade {
  opacity: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 3;
  height: 100vh;
  position: fixed;
  width: 100%;
.heroEffects .title {
  width: 100%;
.heroEffects .title .text {
  z-index: 1;
  width: 100%;
  text-align: center;
  color: #fff;
  padding: 2em;
  background-color: rgba(0, 0, 0, 0.5);
.heroEffects .arrow {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  width: 3rem;
  height: 3rem;
  opacity: 1;

.centerV {
  display: table;
  height: 100%;
.centerV > div {
  display: table-cell;
  vertical-align: middle;

h1 {
  font-size: 5rem;
  margin-bottom: 0.1em;
  line-height: 1;
  color: #fff;

p {
  font-family: 'Nixie One', sans-serif;
  width: 60%;
  margin: 0 auto;
  line-height: 1.5;
  padding: 1rem 2rem;
  border-top: solid 1px rgba(255, 255, 255, 0.2);
  letter-spacing: 0.015em;
  display: block;
  color: #fff;

.content {
  height: 100vh;
  background-color: #000;

.bouncy {
  animation: bouncy 1.5s infinite;

@keyframes bouncy {
  100% {
    transform: translateY(0);
  50% {
    transform: translateY(-.5rem);


                (function () {
    $(window).scroll(function () { 
        var Num = $(window).scrollTop() / 500;
        var Num2 = $(window).scrollTop() * .0004; // higher number for larger scaling BG
        var Num2mod = Num2 + 1;
        var Num3 = $(window).scrollTop() * .2; // speed of text scroll
        var Num3mod = Num3 + 1;
        return $('.shade').css('opacity', Num),
        $(".bg").css({"transform":"scale(" + Num2mod + ")"}),
        $(".text").css({"margin-top":"-" + Num3mod + "px"});