mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
add fade to MFM options
This commit is contained in:
parent
40a41c20da
commit
26c89afaef
@ -253,6 +253,16 @@ export default defineComponent({
|
||||
style = `background-color: #${color};`;
|
||||
break;
|
||||
}
|
||||
case "fade": {
|
||||
const direction = token.props.args.out
|
||||
? "alternate-reverse"
|
||||
: "alternate";
|
||||
const speed = validTime(token.props.args.speed) || "1.5s";
|
||||
style =
|
||||
this.$store.state.animatedMfm && !reducedMotion()
|
||||
? `animation: mfm-fade ${speed} linear infinite; animation-direction: ${direction};`
|
||||
: "";
|
||||
}
|
||||
}
|
||||
if (style == null) {
|
||||
return h("span", {}, [
|
||||
|
Loading…
Reference in New Issue
Block a user