branching directions

pull/1/head
km0 3 years ago
parent 2d86221fa0
commit d28556aacb

@ -13,7 +13,7 @@
<div class="stream"> <div class="stream">
<% transform = '' %> <% transform = '' %>
% for branch in stream: % for branch in stream:
<% transform = transform + ' rotate(' + str(random() * 0.02) + 'turn) translateX(100%)'%> <% transform = transform + ' rotate(' + str((random() * 2 - 1) * 0.02) + 'turn) translateX(100%)'%>
<div class="svg-container" style="transform: ${transform}">${branch['content']}</div> <div class="svg-container" style="transform: ${transform}">${branch['content']}</div>
% endfor % endfor
</div> </div>

Loading…
Cancel
Save