So if I know that I can transition an svg path with something like the below:
const pathVariants = {
inital: {
opacity: 0,
pathLength: 0
},
final: {
opacity: 1,
pathLength: 1,
transition: {
duration: 2,
ease: "easeInOut"
}
}
};
//...
<motion.path
variants={pathVariants}
/>
but I can't seem to get the syntax for a motion.line
. I tried lineLength
instead of pathLength
, but that didn't seem to work. Thoughts?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…