comment out easing part for now
This commit is contained in:
parent
d8d2ee266e
commit
9382afeb5e
|
@ -57,12 +57,12 @@ export default defineComponent({
|
||||||
if (t == null) return null;
|
if (t == null) return null;
|
||||||
return t.match(/^[0-9.]+s$/) ? t : null;
|
return t.match(/^[0-9.]+s$/) ? t : null;
|
||||||
};
|
};
|
||||||
const validEase = (e: string | null | undefined) => {
|
// const validEase = (e: string | null | undefined) => {
|
||||||
if (e == null) return null;
|
// if (e == null) return null;
|
||||||
return e.match(/(steps)?\(-?[0-9.]+,-?[0-9.]+,-?[0-9.]+,-?[0-9.]+\)/)
|
// return e.match(/(steps)?\(-?[0-9.]+,-?[0-9.]+,-?[0-9.]+,-?[0-9.]+\)/)
|
||||||
? (e.startsWith("steps") ? e : "cubic-bezier" + e)
|
// ? (e.startsWith("steps") ? e : "cubic-bezier" + e)
|
||||||
: null
|
// : null
|
||||||
}
|
// }
|
||||||
|
|
||||||
const genEl = (ast: mfm.MfmNode[]) =>
|
const genEl = (ast: mfm.MfmNode[]) =>
|
||||||
concat(
|
concat(
|
||||||
|
@ -109,8 +109,8 @@ export default defineComponent({
|
||||||
case "tada": {
|
case "tada": {
|
||||||
const speed = validTime(token.props.args.speed) || "1s";
|
const speed = validTime(token.props.args.speed) || "1s";
|
||||||
const delay = validTime(token.props.args.delay) || "0s";
|
const delay = validTime(token.props.args.delay) || "0s";
|
||||||
const ease = validEase(token.props.args.ease) || "linear";
|
// const ease = validEase(token.props.args.ease) || "linear";
|
||||||
style = `font-size: 150%; animation: tada ${speed} ${delay} ${ease} infinite both;`;
|
style = `font-size: 150%; animation: tada ${speed} ${delay} linear infinite both;`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "jelly": {
|
case "jelly": {
|
||||||
|
|
Loading…
Reference in New Issue