-
I'm moving my Illustrator SVG's into React Spring. I have separate path elements that I'd like to animate separately. I have a large <Spring
native
to={{ x: inView ? 1 : 0 }}
>
<animated.polyline
strokeDashoffset={
props.x
.interpolate( { range: [1, 0], output: [0, 100] } )
.interpolate( x => x )
}
stroke-dasharray={`100`}
name="checkMark"
fill={`none`}
stroke={blue}
strokeWidth={`1.5625`}
strokeLinecap={`round`}
points="43.96 50.03 40.84 53.15 39.32 51.65"
/>
</Spring> The pathing I get from Illustrator is drawn backwards with this path. How do I make it draw itself the other way around? |
Beta Was this translation helpful? Give feedback.
Answered by
tomdohnal
Feb 1, 2021
Replies: 1 comment 2 replies
-
I think that you can solve it if you use |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
tnorlund
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think that you can solve it if you use
output: [0, -100]
instead ofoutput: [0, 100]
in your.interpolate(...)
call