                            (setProperty "backgroundImage" image-url)
                            (setProperty "background-repeat" "no-repeat")
                            (setProperty "background-size" "cover"))
+                       (.. simulation (add box spring rotational-spring))
                        {:node image-node
                         :el el
                         :box box

                                      (swap! current-index dec)
                                      )
            (= channel next-clicks) (let [current-index (:currentIndex pager)]
                                      (println "back" @current-index)
                                      (swap! current-index inc)
                                      )))))))


    root-dot))

(defn create-pager [root-node]
  (let [simulation (PhysicsEngine.)
        pager-node (.. root-node addChild)
        url-base "http://demo.famo.us.s3.amazonaws.com/hub/apps/carousel/Museo_del_Prado_-_Goya_-_Caprichos_-_No._"
        image-names ["01_-_Autorretrato._Francisco_Goya_y_Lucientes2C_pintor_thumb.jpg"
                     "02_-_El_si_pronuncian_y_la_mano_alargan_al_primero_que_llega_thumb.jpg"
