     , 0
 
     # delay node removal time to speed
-    delay = @speed * 1000
+    delay = (@speed * 1000) + 300
     window.setTimeout =>
-      currentPageClone.parentNode.removeChild currentPageClone
+      currentPage.style.display = "none"
     , delay
 
   # Private: Perform a slide from bottom transition.

  slide: (targetPage, currentPage) ->
    targetPage.style.display = "-webkit-box"
    targetPage.style.overflow = "visible"
    screenWidth = window.innerWidth + 'px'

    currentPageClone = currentPage.cloneNode true
    currentPage.parentNode.appendChild currentPageClone
    currentPageClone.style.overflow = "visible"
    currentPage.style.display = "none"

    if @back
      @translate(targetPage, "X", "-" + screenWidth, "0ms")
      window.setTimeout =>
        @translate(currentPageClone, "X", "100%")
      , 0
    else
      @translate(targetPage,"X", screenWidth, "0ms")
      window.setTimeout =>
        @translate(currentPageClone, "X", "-100%")
      , 0

    window.setTimeout =>

  back: false

  transitionAnimation: true
  speed: 0.3
  mainMenu: '#main-menu'
  menuCloseButton: '#close-menu-btn'

