Creating animations with Clojurescript Om

前端 未结 2 2092
滥情空心
滥情空心 2020-12-14 04:48

I\'ve been looking around for how to create animations in Om, I\'ve tried creating a RaphaelJs component with moderate success. I get the animation I want, but for some reas

2条回答
  •  执念已碎
    2020-12-14 05:16

    Care to look into a ClojureScript port of https://github.com/chenglou/react-tween-state or https://github.com/chenglou/react-state-stream?

    TransitionGroup provides nothing but helpers for hooking onto some lifecycle events. It theoretically has nothing to do with animation. If you want an actual animation API, give a look at the two things I made above. The readmes should provide enough information for the rest.

提交回复
热议问题