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


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.


            .banner__bg(style="background-image: url('')")
                p.banner__title Title 1
                p.banner__descr Description


  height: 100vh
  position: relative
  background-color: #ffffff
      display: block
    position: absolute
    z-index: 2
    top: 0
    bottom: 0
    right: 0
    left: 0
    display: none
    height: 100%
    background-position: center
    background-size: cover
    background-repeat: no-repeat
    position: absolute
    left: 0
    top: 0
    width: 100%
    height: 100%
    width: 41.61%
    margin-right: 4.6%
    display: flex
    align-items: center
    justify-content: center
    color: #ffffff
    text-decoration: none
    position: absolute
    left: 0
    top: 0
    height: 100%
    width: 100%
    position: absolute
    opacity: 0
    & > .container
      display: flex
      justify-content: flex-end
    font-size: 3.3em
    font-size: 1.75em
    margin-top: 1.3rem


                (function initBannerSlider() {
    var $slider = $('#banner-slider');
    var $wrap = $('#banner');

    var mySwiper = new Swiper($slider, {
      speed: 650,
      virtualTranslate: true,
      on: {
        init: function() {
          var $active = $slider.find('.swiper-slide.swiper-slide-active');
          var tl = new TimelineLite();

          tl.fromTo($active, 0, {autoAlpha: 0}, {autoAlpha: 1})
            // START IMAGE ANIMATION          
            .fromTo($active.find('.banner__bg'), 1.3, {webkitClipPath:'circle(0% at 0% 50%)', clipPath:'circle(0% at 0% 50%)'}, {webkitClipPath:'circle(150% at 0% 50%)', clipPath:'circle(150% at 0% 50%)', ease: Power1.easeIn}, 0)
            // END IMAGE ANIMATION     
            .fromTo($active.find('.banner__title'), .8, {x: -30, autoAlpha: 0}, {x: 0, autoAlpha: 1}, '-=0.3')
            .fromTo($active.find('.banner__descr'), .8, {x: -30, autoAlpha: 0}, {x: 0, autoAlpha: 1, onComplete: function() {
              }}, '-=0.3');