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

Running animations not possible in UrlChange Message of Browser.application #64

Open
marschro opened this issue Oct 1, 2018 · 1 comment

Comments

@marschro
Copy link

marschro commented Oct 1, 2018

When I trigger the animation (by setting a new Animation.State in my model) in the UrlChanged Msg of Browser.application (newly introduced in 0.19), these animations are never run, even if the elements, to be animated, are already in the DOM.
Setup was co-checked by manually triggering the Animation via onClick Event, in order to make sure there are no other problems in the animation-mechanism, which worked fine.
Probably it is not a problem in this package. Maybe there is an exception rule in the elm runtime, that does not update the views in the two Routing Messages (LinkClicked and UrlChanged) of Browser.application?

@francescortiz
Copy link

I get something similar. I think it can be related. In my case, the animation is triggered after there is an additional update call.

mthadley added a commit to mthadley/thenews that referenced this issue May 25, 2019
Use mthadley/elm-hash-routing and also remove the animation. Seems like
other people were also having issues:

mdgriffith/elm-style-animation#64
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

2 participants