diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-11-02 15:37:42 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-11-02 15:37:42 +0900 |
| commit | d44cb7f2566dc16d75c0b32aa3fcea0d03d2f835 (patch) | |
| tree | 958b27740b8968e7bdb1d0545af1b61c3f4b214d /src/client/components | |
| parent | :art: (diff) | |
| download | misskey-d44cb7f2566dc16d75c0b32aa3fcea0d03d2f835.tar.gz misskey-d44cb7f2566dc16d75c0b32aa3fcea0d03d2f835.tar.bz2 misskey-d44cb7f2566dc16d75c0b32aa3fcea0d03d2f835.zip | |
Add new MFM animation syntax
Diffstat (limited to 'src/client/components')
| -rw-r--r-- | src/client/components/mfm.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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(), |