Sure. For SVG examples please view the presentation here: 
http://qcon.juxt.pro - I'm sorry it isn't (yet) responsive or 
touch-sensitive (getting it working on my laptop before the talk became the 
overriding priority) so you'll need a keyboard to control it. Use the 
left/right arrow keys to navigate between slides.

SVG animations are on slides 19, 20, 22, 26, 29 and 30.

Source code is here: 
https://github.com/juxt/qcon2014/blob/master/src-cljs/qcon/main.cljs

Thanks in part to Ŝablono[1] providing the Hiccup syntax, blending together 
SVG, ClojureScript and Om component state is easy :-

[:g {:transform "translate(30,0)"
      :onClick (fn [_] (new-random-pick owner))}
  [:rect
     {:x 0 :y 65 :width 100 :height 100 :fill "black" :stroke "white" 
:stroke-width 3}]
     (when-let [n (om/get-state owner :pending-put)]
       [:text {:x 20 :y 150 :style {:font-size "64pt" :color "white"} :fill 
"white"} (str n)])]

[1] Ŝablonp - https://github.com/r0man/sablono


On Sunday, 9 March 2014 15:15:29 UTC, Base wrote:
>
> This is really cool.  Could you share some examples of the SVG animations 
> you have been playing with?  

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to