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="screen_images_one slide_center">
        <img class="slide_center desktop_view" src="" alt="Desktop view of a website we have built"



                .slide_center {
  top: 50%;
  visibility: hidden;  
.desktop_iframe {
    width: 1808px;
    height: 904px;
    position: absolute;
    top: -380px;
    left: -903px;
    z-index: 2;


                var sowerby_slide_show = new TimelineMax({
  repeat: -1,
  repeatDelay: 4,
  onRepeat: onRepeat

function tell_me() {
  console.log("Im the call back from the .to() that should move the iframe to make it show.");

function onRepeat() {
  $(".desktop_iframe").remove(); //remove it so we can load it in again from the start

function reload_desktop_iframe(location, iframe_class, iframe_id, src) {
  console.log("inside reload_desktop_iframe function");
  var iframe = document.createElement("iframe"); = iframe_id;
  // this function will called when the iframe loaded
  iframe.onload = function() {
    console.log("loaded iframe");
  // set the src last.
  iframe.src = src;

  TweenMax.set("#" + iframe_id, {
    background: "none transparent",
    scale: 0.345,
    x: 0,
    y: -47,
    autoAlpha: 0.0
  $("#" + iframe_id).attr({
    class: iframe_class,
    frameBorder: "0",
    scrolling: "no"
  console.log("added iframe");;

  .set("", {
    onComplete: reload_desktop_iframe,
    onCompleteParams: [".screen_images_one", "desktop_iframe slide_center", "dodds-brown_iframe", ""]
  }, 'start')

.set(".screen_images_one", {
  autoAlpha: 1.0
}, 'start')

.to('.desktop_view', 1, {
    autoAlpha: 1.0,
    x: -279,
    y: -160,
    autoAlpha: 1.0
  }, 'start+=0.5')
  .to('.desktop_iframe', 1, {
    y: -100,
    autoAlpha: 1.0,
    onComplete: tell_me