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.


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.


                input.message(placeholder='How can we help?')
    | <span> <i class="fa fa-life-ring"></i></span>


                @import bourbon
@import neat

$black: black
$white: white
$gray: #9b9b9b

html, body
  font-family: Montserrat
  width: 100%
  margin: 0
  padding: 0
  background: #F5F7F8
  width: 0em
  position: absolute
  left: 50%
  border: 0
  border-radius: 50px
  margin-top: 4em
  background: white
  box-shadow: 0px 0px 0px shade(#F5F7F8, 20%)
  font-size: 1.5em
  padding: 1em
  color: #333
  opacity: 0
  @media(max-width: 650px)
    width: 0em
    font-size: 1em
    margin-top: 10em
    outline: none
    opacity: 1
    width: 20em
    box-shadow: 3px 3px 10px shade(#F5F7F8, 20%)


  display: flex
  align-items: center
  justify-content: center
  height: 100vh
  // min-height: 650px
    width: 10em
    height: 10em
    border-radius: 0 50% 50% 50%
    border-radius: 50%
    cursor: pointer
    // border: 6px solid black
    transform: rotate(0deg)
    background: dodgerblue
    box-shadow: 4px 4px 10px shade(white, 30%)
    position: relative
      border-radius: 0 50% 50% 50%
      transform: rotate(45deg)
      background: black
        position: absolute
        left: 38%
        top: 30%
        // +transform(translateX(-50%) translateY(-50%))
        font-size: 3em
        color: white
      background: green
      transform: rotate(0deg)
      border-radius: 5px
    position: absolute
    left: 50%
    top: 50%
    +transform(translateX(-50%) translateY(-50%))
    font-size: 3em
    color: white



                open = true
$('.tear').click -> 
  if open
    $('.tear').html("<span><i class='fa fa-close'></i></span>")
    open = !open
    $('.tear').removeClass('active green')
    $('.tear').html("<span><i class='fa fa-life-ring'></i></span>")
    open = !open

$('input').on 'input', (e)-> 
  value = $("input").val()
  if value.length >= 2
    $('.tear').html("<span><i class='fa fa-check'></i></span>")
    $('.tear').html("<span><i class='fa fa-close'></i></span>")