Working with customizable gradients (After Effects to Lottie)

Hello, I would like to ask if there’s a way to have customizable color gradient through different shapes?

  1. Mask shape + feather trick don’t work.
  2. Gradient fill can be read by Lottie, but I need the 2 colors read on separate shapes so they can be customizable well with 2 colors only.
  3. The other workaround I tried was to export a .png shape with feathered edges + fill color, but the color won’t change on Lottie.