airbnb / lottie-android

Render After Effects animations natively on Android and iOS, Web, and React Native
http://airbnb.io/lottie/
Apache License 2.0
34.95k stars 5.4k forks source link

Add percentage support for text range animators #2522

Open gpeal opened 1 month ago

gpeal commented 1 month ago

Follow-up from https://github.com/airbnb/lottie-android/pull/2518

cc @allenchen1154

allenchen1154 commented 1 month ago

Lottie Web implementation for reference. Are there examples in the repo of representing Bezier curves?

gpeal commented 1 month ago

@allenchen1154 beziers are used almost everywhere in Lottie 😄 Here is an example where animated paths are parsed. A path is represented as a list of cubic beziers and animations also use cubic beziers to interpolate between keyframes.