offset again

mako
km0 2 years ago
parent 3c95e10fd8
commit 0767c14eea

@ -12,7 +12,7 @@
<% offset = 1 / (len(streams) - 1)%> <% offset = 1 / (len(streams) - 1)%>
% for stream in streams: % for stream in streams:
<div class="stream"> <div class="stream">
<% transform = f'rotate({offset * loop.index}turn)' %> <% transform = f'rotate({offset * loop.index}turn) translateX(100%) ' %>
% for branch in stream: % for branch in stream:
<% transform = transform + ' rotate(' + str((random() * 2 - 1) * 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>

Loading…
Cancel
Save