 
       do (panel, i, delay) =>
         defer =>
-          panel.style[css.transform] = @_transform 0, @_lastOp.anchor
+          @_transformPanel panel, 0, @_lastOp.anchor
           setTimeout =>
             showEl panel.children[0]
             if i is len - 1


        do (panel, i, delay) =>
          defer =>
            panel.style[css.transform] = @_transform (if i is 0 then 90 else 170), anchor
            setTimeout =>
              if i is 0
                @_inTrans = false

      cb? event, @


  # Transforms a given element based on angle, anchor, and fracture boolean.
  _transformPanel: (el, angle, anchor, fracture) ->
    # The values of 1 and -1 are used to try to prevent small gaps from
    # appearing between panels during transforms.
    x = y = z = 0
    switch anchor
      when 'left'
        y = angle
        translate = 'X(-1'
      when 'right'
        y = -angle
        translate = 'X(1'
      when 'top'
        x = -angle
        translate = 'Y(-1'
      when 'bottom'
        x = angle
        translate = 'Y(1'

    # Rotate on every axis in fracture mode.
    x = y = z = angle if fracture

    el.style[css.transform] = """
                              rotateX(#{ x }deg)
                              rotateY(#{ y }deg)
                              rotateZ(#{ z }deg)
                              translate#{ translate }px)
                              """

  # `_normalizeAngle` validates a given angle by making sure it's a float and by
  # keeping it within the maximum range specified in the instance settings.
