Skip to content

Animate Path #1370

Answered by tnorlund
tnorlund asked this question in Support
Discussion options

You must be logged in to vote

I fixed this by interpolating between different 'output's:

         <animated.path
            stroke={`var(--color-text)`}
            strokeWidth={`1.5px`}
            fill={`none`}
            d={ props.x.interpolate( {
              range: [ min_x, max_x ], output: [ d0, d1 ]
            } ) }
          />

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tnorlund
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #1368 on March 26, 2021 17:17.