cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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='http://code.famo.us/lib/functionPrototypeBind.js')
    script(src='http://code.famo.us/lib/classList.js')
    script(src='http://code.famo.us/lib/requestAnimationFrame.js')
    link(rel='stylesheet', href='http://code.famo.us/famous/0.3/famous.css')
    script(src='http://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='http://cdn.jsdelivr.net/chartist.js/latest/chartist.min.js')
    link(rel='stylesheet', href='http://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
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console