Add new MFM animation syntax

This commit is contained in:
syuilo
2020-11-02 15:37:42 +09:00
parent 3d063c95d1
commit d44cb7f256
5 changed files with 69 additions and 12 deletions

View File

@ -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(),