From 82326e203ae122d2ff6139ca39334fd998fb6805 Mon Sep 17 00:00:00 2001 From: Francesco Luzzana Date: Sun, 22 May 2022 20:07:42 +0200 Subject: [PATCH] offset --- exquisite_branch/templates/display_mako.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exquisite_branch/templates/display_mako.html b/exquisite_branch/templates/display_mako.html index dd6dbcf..8e85858 100644 --- a/exquisite_branch/templates/display_mako.html +++ b/exquisite_branch/templates/display_mako.html @@ -12,9 +12,9 @@ <% offset = 1 / len(streams)%> % for stream in streams:
- <% transform = '' %> + <% transform = f'rotate({offset * loop.index}turn)' %> % for branch in stream: - <% transform = transform + ' rotate(' + str((random() * 2 - 1) * 0.02 + (offset * loop.index)) + 'turn) translateX(100%)'%> + <% transform = transform + ' rotate(' + str((random() * 2 - 1) * 0.02) + 'turn) translateX(100%)'%>
${branch['content']}
% endfor