summaryrefslogtreecommitdiff
path: root/examples/clock/style.css
diff options
context:
space:
mode:
Diffstat (limited to 'examples/clock/style.css')
-rw-r--r--examples/clock/style.css1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/clock/style.css b/examples/clock/style.css
index a6f8349..c23e033 100644
--- a/examples/clock/style.css
+++ b/examples/clock/style.css
@@ -44,6 +44,7 @@ body * { box-sizing: border-box; }
--cssx-on-mount: update(--date, call(--get-date));
--cssx-on-update:
+ update('[data-element=seconds]', --angle, js-eval("360 * new Date().getSeconds() / 60 - 90")),
update('[data-element=seconds]', --angle, js-eval("360 * new Date().getSeconds() / 60 - 90"))
update('[data-element=minutes]', --angle, js-eval("360 * new Date().getMinutes() / 60 - 90"))
update('[data-element=hours]', --angle,