You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to animate a Circle inward, since it doesn't work with box-shadow as in CSS, the idea is to render a circle and animate r from progress.value * radius down to 1 and stroke-width from 0 up to radius. The desired animation is:
This could potentially work in react-native-svg too, however, react-native-svg fails to render the stroke properly as soon as the radius - strokeWIdth / 2 becomes lower than zero.
leads to my desired effect, however, this might become an issue in other places where a workaround like this is not possible. Is this as expected or should I open a bug ticket for this?
Unfortunately, react-native-svg does not currently support CSS keyframes. We have noted this as a potential feature to add to our roadmap. If you have any further questions, please feel free to open a new issue.
Question
I am trying to animate a Circle inward, since it doesn't work with box-shadow as in CSS, the idea is to render a circle and animate r from progress.value * radius down to 1 and stroke-width from 0 up to radius. The desired animation is:
inward.mp4
and is done in CSS as simple as:
This could potentially work in react-native-svg too, however, react-native-svg fails to render the stroke properly as soon as the radius - strokeWIdth / 2 becomes lower than zero.
HTML/CSS:
renders
The following in react-native-svg:
Long story short: can I achieve the desired effect in react-native-svg?
Any help much appreciated.
Cheers
The text was updated successfully, but these errors were encountered: