lottie-api
lottie-api copied to clipboard
Opacity not working
I'm trying to target Opacity and it won't work. Neither does with Shape Layers and Null Objects.
Can you try targeting the Opacity and confirm it is not working?
Can you share your implementation?
@bodymovin Thanks for replying so fast!
This is the implementation:
Starting the animation using react-lottie: https://github.com/felippenardi/lottie-face-control/blob/master/src/App.js#L27
Using lottie-api to modify properties: https://github.com/felippenardi/lottie-face-control/blob/master/src/utils/LottieWithAnimationControl.js#L11
Note that the controlling the position of JoyStkCtrl01
works, and modifying the scale of the Cursor
(not in the code) does also works. But when it comes to Opacity
, the addValueCallback
is never triggered.
Here is my after effects:
Here is a live preview of the above repo: https://lottie-face-control-okfpwprnjr.now.sh/
Hi, it should be fixed now.
You are the best!
@bodymovin I tried to fix it myself, but I was replacing po
for ks
, which was the property my Json was holding the opacity. How did you get to o
?
I also develop the player, so I knew the name of the property :)
Just curious on why opacity was named "ks" inside my json
it shouldn't. ks is a group of properties including opacity and transforming properties