tl;dr reagentは理解できるけど、cssのtransitionとかは厳しい、でもUIには動きを付けたい筆者のような人にオススメのreanimatedというライブラリがある 勉強兼ねてデモ作ってみた。ソース デモGIF デモのコード (ns reanimated.demo (:require [reagent.core :as r] [reanimated.core :as rc])) (defn item [s stuff] (let [size (r/atom 40) spr (rc/spring size)] (fn [] [:div {:on-click #(swap! stuff (fn [stuff] (assoc stuff s false))) :style {:font-size (str @spr "px") :margin "10px" :cursor "po
![reanimatedでreagentのUIを楽しくする - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/2201e7729bfdc3f613dcc58e5e7fa5a43e55e0d0/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Fadvent-calendar-ogp-background-f625e957b80c4bd8dd47b724be996090.jpg%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTkxNiZoPTMzNiZ0eHQ9cmVhbmltYXRlZCVFMyU4MSVBN3JlYWdlbnQlRTMlODElQUVVSSVFMyU4MiU5MiVFNiVBNSVCRCVFMyU4MSU5NyVFMyU4MSU4RiVFMyU4MSU5OSVFMyU4MiU4QiZ0eHQtY29sb3I9JTIzM0EzQzNDJnR4dC1mb250PUhpcmFnaW5vJTIwU2FucyUyMFc2JnR4dC1zaXplPTU2JnR4dC1jbGlwPWVsbGlwc2lzJnR4dC1hbGlnbj1sZWZ0JTJDbWlkZGxlJnM9MTg5MmIwYmViM2RmOTU3NTczYWVhMjE1YzQyMGQ0MjA%26mark-x%3D142%26mark-y%3D151%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTYxNiZ0eHQ9JTQwaWt1MDAwODg4JnR4dC1jb2xvcj0lMjMzQTNDM0MmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9MzYmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz02OWMwMmNiMGUwNmQyOTdiNTY5ZDdjNDE4NDdlNjRmNg%26blend-x%3D142%26blend-y%3D491%26blend-mode%3Dnormal%26s%3D682b0e8a78426a2b525e5682441dc416)