From 66c4e8064b929b8cf8325fb55cba85bc01e67bf6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 8 Nov 2020 17:08:51 +0900 Subject: Add bounce MFM animation --- src/client/components/mfm.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client/components/mfm.ts') diff --git a/src/client/components/mfm.ts b/src/client/components/mfm.ts index 0b25f0b183..d83cd41528 100644 --- a/src/client/components/mfm.ts +++ b/src/client/components/mfm.ts @@ -117,6 +117,10 @@ export default defineComponent({ style = this.$store.state.device.animatedMfm ? 'animation: mfm-jump 0.75s linear infinite;' : ''; break; } + case 'bounce': { + style = this.$store.state.device.animatedMfm ? 'animation: mfm-bounce 0.75s linear infinite; transform-origin: center bottom;' : ''; + break; + } case 'flip': { const transform = (token.node.props.args.h && token.node.props.args.v) ? 'scale(-1, -1)' : -- cgit v1.2.3-freya