 # http://oxism.com
 # Copyright 2013, MIT License
 
-
+baseName = 'hexaflip'
+className = baseName[0].toUpperCase() + baseName.slice 1
 testEl = document.createElement 'div'
 prefixList = ['Webkit', 'Moz', 'O', 'ms']
 transform = do ->

      yLast: 0
      el: document.createElement 'div'

    cube.el.className = "#{ @baseName }-cube #{ @baseName }-cube-#{ set }"

    for side in @_faceNames
      cube[side] = document.createElement 'div'
      cube[side].className = @baseName + '-' + side
      cube.el.appendChild cube[side]

    for eventType in ['MouseDown', 'MouseMove', 'MouseUp', 'MouseOut'] then do (eventType) =>


class window.Hexaflip

  className: baseName
  _touchCoefficient: .7
  _faceNames: ['front', 'bottom', 'back', 'top', 'left', 'right']
  _faceSequence: @::_faceNames.slice 0, 4
