Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shadows will not animate and ignore code state changes #580

Open
destefanis opened this issue Jul 4, 2018 · 0 comments
Open

Shadows will not animate and ignore code state changes #580

destefanis opened this issue Jul 4, 2018 · 0 comments

Comments

@destefanis
Copy link

I'm attempting to animate a box shadow on a progress bar to glow upon completion. However, all of my attempts to animate the shadow properties have not worked.

The only solution I've found is a binary on/off if the layer already has a shadow set.

I've also attempted:

  • Creating shadows on each state and changing properties on state animation change (for instance changing blur, spread, color etc) these never change and I don't know why.
  • Creating shadow layers that I could change the opacity of to create a quick pulse animation. However changing the opacity of these layers does nothing in code, even set at 0 opacity they are still visible, oddly transforms work which is confusing.
  • Setting a base default shadow on a layer, then updating the shadow in another state.

From what I've explored in the docs this topic is not covered (I could have missed it but I've been tryin g for some time).

Is there something I'm missing or can shadows not be animated?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant