Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                .thing(ng-app='ngApp', ng-controller='MyCtrl')
  input.result(ng-model='thing')
  input.i1(ng-model='thing')
              
            
!

CSS

              
                html, body
  margin 0
  height 100%
body
  display flex
  justify-content center
  align-items center
  background radial-gradient(ellipse at center,  rgba(63,65,68,1) 0%,rgba(0,0,0,1) 100%)
  .thing
    position relative
    perspective 200px
    perspective-origin 50% 0
    input
      padding 0.5rem
      box-sizing border-box
      font-size 2rem
    .i1
      border 1px solid #666
      outline none
    .result
      position absolute
      width 100%
      height 100%
      left 0%
      top 90%
      border 1px solid black
      filter blur(3px)
      pointer-events none
      transform  scale(1.1,-1) rotateX(-65deg)
      opacity 0.3
              
            
!

JS

              
                angular.module 'ngApp', []
.controller 'MyCtrl', ($scope, $timeout) ->
  $scope.thing = ''
  target = 'I glow at night'
  index = 0
  writeChar = ->
    if $scope.thing isnt target
      $scope.thing += target.charAt index++
      $timeout writeChar, 220
  writeChar()
              
            
!
999px

Console