cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation

     

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.

            
              html
  head
    script(src='https://code.jquery.com/jquery-2.1.1.min.js')
    script(src='https://code.famo.us/lib/functionPrototypeBind.js')
    script(src='https://code.famo.us/lib/classList.js')
    script(src='https://code.famo.us/lib/requestAnimationFrame.js')
    link(rel='stylesheet', href='https://code.famo.us/famous/0.3/famous.css')
    script(src='https://code.famo.us/famous/0.3/famous-global.min.js')
    meta(name='viewport', content='width=device-width, maximum-scale=1, user-scalable=no')
    meta(name='apple-mobile-web-app-capable', content='yes')
    meta(name='apple-mobile-web-app-status-bar-style', content='black')
    meta(name='apple-mobile-web-app-capable', content='yes')
    meta(name='mobile-web-app-capable', content='yes')
    script(src='https://cdn.jsdelivr.net/chartist.js/latest/chartist.min.js')
    link(rel='stylesheet', href='https://cdn.jsdelivr.net/chartist.js/latest/chartist.min.css')
 body
            
          
!
            
              @import "nib"

html
  background-color #F8DD99
  font-family Heveltica, Arial, sans-serif
  color #A19D56

.chart-box
  width 220px
  height 220px
  float left
  margin-bottom: 5px
p
  color #3a3125
  padding: 0
  margin: 0
  width: 100%
  text-align center
  font-weight bolder

            
          
!
            
              $ ->
  Easing = famous.transitions.Easing
  labels = [0..20]
  
  toFixed = (num) ->
    (Math.round num * 100) / 100
  
  createChart = (fct) ->
    ($ 'body').append "<div class='chart-box'>\
        <p>#{fct}</p>
        <div id='#{fct}' class='ct-chart ct-perfect-fourth'></div>
      </div>"
    series = [[]]   
    series[0].push toFixed (Easing[fct] i/20) for i in labels      
    new Chartist.Line "##{fct}",
      labels: labels
      series: series
    ,
      showArea: true
      showPoint: false
      axisX:
        showLabel: false
        showGrid: false
    
  for key of Easing
    createChart key
            
          
!
999px
Loading ..................

Console