From 5e7fef8c7376bbbb04366d49a6955879fe9ed9ea Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 1 Jun 2026 22:24:11 +0300 Subject: [PATCH] delay --- src/components/rich_content/rich_content.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx index 322b4a8fa..60b546a83 100644 --- a/src/components/rich_content/rich_content.jsx +++ b/src/components/rich_content/rich_content.jsx @@ -367,7 +367,8 @@ export default { break } case 'spin': { - const speed = fullAttrs['data-mfm-speed'] + const speed = fullAttrs['data-mfm-speed'] = '1s' + const delay = fullAttrs['data-mfm-delay'] = 0 const y = fullAttrs['data-mfm-y'] != null const x = fullAttrs['data-mfm-x'] != null const anim = [ @@ -375,7 +376,7 @@ export default { y ? 'mfm-spinY' : null, 'mfm-spin' ].filter(a => a)[0] - newAttrs.style = `animation: ${speed} linear 3s infinite normal none running ${anim}` + newAttrs.style = `animation: ${speed} linear ${delay} infinite normal none running ${anim}` break } case 'flip': {