【发布时间】:2020-07-23 16:42:26
【问题描述】:
我是 React Spring 新手,最初尝试过这个
const strikeProps = useSpring({
textDecoration: "line-through",
from: { textDecoration: "none" },
});
但它不起作用。我认为应该有一种方法可以模拟 CSS 解决方案。
【问题讨论】:
-
不是特定于 react-spring,而是 here is a post that shows how to accomplish this with CSS.
-
是的。在发布我的问题之前,我已经看到了该答案。想知道是否可以使用 react-spring 重新创建。
标签: reactjs react-spring