Re: [ClojureScript] OM: What is the best way of introducing animation/effects during application state transition ?

2014-10-18 Thread Matt DeBoard
Wow, thank you for posting your solution after the fact, instead of doing this: http://imgs.xkcd.com/comics/wisdom_of_the_ancients.png On Sunday, March 16, 2014 2:39:33 PM UTC-5, Jack Schaedler wrote: > Hi David, > > > > Thanks for the quick response! Seems to be working just fine now. I must

Re: [ClojureScript] OM: What is the best way of introducing animation/effects during application state transition ?

2014-04-12 Thread Dylan Butman
CSSTransition groups are cool, but often what you want to do is transition state (or props). I wrote a tiny thing along the same lines for React which I've used a lot in production https://github.com/pleasetrythisathome/react.animate Haven't had time to write the corresponding Om stuff yet, but

Re: [ClojureScript] OM: What is the best way of introducing animation/effects during application state transition ?

2014-04-12 Thread Dmitry Suzdalev
Thank you Jack for this question and later example, it certainly helps a newcomer like me :) Dmitry. On Sunday, March 16, 2014 11:39:33 PM UTC+4, Jack Schaedler wrote: > Hi David, > > > > Thanks for the quick response! Seems to be working just fine now. I must have > screwed up something simp

Re: [ClojureScript] OM: What is the best way of introducing animation/effects during application state transition ?

2014-03-16 Thread Jack Schaedler
Hi David, Thanks for the quick response! Seems to be working just fine now. I must have screwed up something simple when I initially tried it yesterday. For posterity: 1) Access the CSSTransitionGroup from cljs: (def css-trans-group (-> js/React (aget "addons") (aget "CSSTransitionGroup")))

Re: [ClojureScript] OM: What is the best way of introducing animation/effects during application state transition ?

2014-03-15 Thread David Nolen
Several people have successfully used the CSS transition group add on, hopefully they can chime in. On Saturday, March 15, 2014, Jack Schaedler wrote: > Hi David, > > Thanks heaps for all of your tutorials and work on Om. I've got a nice > little clojurescript app with full undo/redo working wit

Re: [ClojureScript] OM: What is the best way of introducing animation/effects during application state transition ?

2014-03-15 Thread Jack Schaedler
Hi David, Thanks heaps for all of your tutorials and work on Om. I've got a nice little clojurescript app with full undo/redo working with Om thanks to your tutorials and blog posts, and my goal for today is to work on animations. As an alternative to the interval within IWillMount, has anyone

Re: [ClojureScript] OM: What is the best way of introducing animation/effects during application state transition ?

2014-03-14 Thread clojure . user
On Saturday, March 8, 2014 7:38:52 AM UTC+5:30, David Nolen wrote: > I would probably do this by hooking into IWillUpdate. Generally whatever > solution makes sense for React will make sense for Om. > > > David > > > > > On Fri, Mar 7, 2014 at 8:35 PM, wrote: > > Hi Everyone, > > > > I

Re: [ClojureScript] OM: What is the best way of introducing animation/effects during application state transition ?

2014-03-07 Thread David Nolen
I would probably do this by hooking into IWillUpdate. Generally whatever solution makes sense for React will make sense for Om. David On Fri, Mar 7, 2014 at 8:35 PM, wrote: > Hi Everyone, > > I have an application state > > (def app-state (atom {:index 0 :some-list [1 2 3 4]})) > > When next b

[ClojureScript] OM: What is the best way of introducing animation/effects during application state transition ?

2014-03-07 Thread clojure . user
Hi Everyone, I have an application state (def app-state (atom {:index 0 :some-list [1 2 3 4]})) When next button is clicked, index is incremented and the corresponding item from the :some-list is displayed. Now I want to introduce an animation/effect during the transition from one item to anot