Mithril with SVG
HTML
<script src="//d3js.org/d3.v3.min.js"></script>
CSS
circle {
stroke-dasharray: 700;
stroke-dashoffset: 700;
stroke-linecap: butt;
-webkit-transition: all 2s ease-out;
-moz-transition: all 2s ease-out;
-ms-transition: all 2s ease-out;
-o-transition: all 2s ease-out;
transition: all 2s ease-out;
}
circle:hover {
fill: pink;
stroke-dashoffset: 0;
stroke-dasharray: 700;
stroke-width: 1;
}
CoffeeScript
Circles =
view: ->
m 'svg', {
width: 300,
height: 300},
m 'g', d3.range(10).map (d, i) ->
m 'circle',
{cx: 40*i + 150, cy: 150, r: 15, fill: 'steelblue'}
m.mount(document.body, Circles)