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.


                <section class="screen">
  <div class="content">
    <!-- [FS] NOTE: This is can be treated also as normal web page and containg normal content -->

<button id="switcher-tv">Turn on/off</button>


                $color-text: #e1eef6;
$color-link: #ff5f2e;
$color-link-hover: #fcbe32;
$black: #111111;

body {
  font-family: sans-serif;
  background-color: $black;

a {
  color: $color-link;
  &:hover {
    color: $color-link-hover;

button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 20px;
  font-weight: 700;
  font-size: 16px;

h1 {
  text-align: center;

.screen {
  background-color: $color-text;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  content: " ";
  overflow: hidden;
    // Fallback for old browsers
  background: #16222A;

  background: -webkit-linear-gradient(to left, #16222A , #3A6073);
  background: linear-gradient(to left, #16222A , #3A6073);
  background-size: cover;
  background-image: url(;
   color: $color-text;


                (function() {
  var SELECTOR_SCREEN_ELEMENT = '.screen';
  var SELECTOR_SWITCHER_TV = '#switcher-tv';
  var isTurnedOn = true;
  var timeline;
  function buildTimeline() {
    timeline = new TimelineMax({
      paused: true
      width: '100vw',
      height: '2px',
      background: '#ffffff',
      ease: Power2.easeOut
      width: '0',
      height: '0',
      background: '#ffffff'
  function toggleSwitcherTV() {
    if (isTurnedOn) {
    if (!isTurnedOn) {
    isTurnedOn = !isTurnedOn;
  // Initialize
  // Bindings
  $(document).on('click', SELECTOR_SWITCHER_TV, function() {