https://github.com/cljsjs/packages/tree/master/react-flip-move

Add the following to :dependencies section in project.clj 

[cljsjs/react-flip-move "3.0.1-1"]


Your cljs code:

(ns application.core
  (:require cljsjs.react-flip-move))

(def flip-move (r/adapt-react-class js/FlipMove))

(defn my-list [data]
  [:div
    [:ul
      [flip-move {:easing "cubic-bezier(0, 0.7, 0.8, 0.1)"}
        (map (fn [[k v]] (vector :li {:key k} v)) (:list @data))]]

    [:button.btn.btn-primary
      {:on-click #(swap! data update-in
                         [:list] (fn [s]
                                   (into {} (shuffle (seq s)))))}
      "Shuffle"]])  

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.

Reply via email to