From d44cb7f2566dc16d75c0b32aa3fcea0d03d2f835 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 2 Nov 2020 15:37:42 +0900 Subject: Add new MFM animation syntax --- src/client/components/mfm.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/client/components') diff --git a/src/client/components/mfm.ts b/src/client/components/mfm.ts index 7e4fec2848..e1216614a6 100644 --- a/src/client/components/mfm.ts +++ b/src/client/components/mfm.ts @@ -131,6 +131,12 @@ export default defineComponent({ }, genEl(token.children)); } + case 'shake': { + return h('span', { + style: this.$store.state.device.animatedMfm ? 'display: inline-block; animation: anime-shake 0.5s ease infinite;' : 'display: inline-block;' + }, genEl(token.children)); + } + case 'url': { return [h(MkUrl, { key: Math.random(), -- cgit v1.2.3-freya