   # Allows other methods to change the tween duration or disable it altogether.
   _setTweening: (speed) ->
     # To loop through the shaders, derive the correct pair from the current anchor.
-    if @lastOp.anchor is 'left' or @lastOp.anchor is 'right'
-      shaderPair = ['left', 'right']
-    else
-      shaderPair = ['top', 'bottom']
+    shaderPair = if @lastOp.anchor in anchorListV then anchorListV else anchorListH
 
     # Loop through the panels in this anchor and set the transition duration to the new speed.
     for panel, i in @panels[@lastOp.anchor]


  _createPanels: (axis, proto) ->
    if axis is 'x'
      anchors = ['left', 'right']
      count   = @vPanels
      metric  = 'width'
    else
      anchors = ['top', 'bottom']
      count   = @hPanels
      metric  = 'height'


    @enableTouch() if @settings.touchEnabled

    # Append each stage to the target element.
    @stageHolder.appendChild @stages[anchor] for anchor in anchorList

    # Show the target if applicable.
    if @settings.showOnStart
