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

No transition on application's first render #78

Open
samselikoff opened this issue Sep 27, 2017 · 0 comments
Open

No transition on application's first render #78

samselikoff opened this issue Sep 27, 2017 · 0 comments

Comments

@samselikoff
Copy link
Contributor

Amazing addon!

I'd love for the library to support disabling animations on application initial render, similar to how Liquid Fire works. If you look at this page from the docs

http://pzuraq.github.io/liquid-tether/#/docs/routed-tethers/step-one

you'll see the modal animates in. I think it should be disabled on first render by default, with options to initially animate.

I solved this in my app currently by adding a {{ui-hooks did-insert=(action 'didInsertApp')}} component and a simple action

didInsertApp() {
  Ember.run.later(() => {
    Ember.$('body').addClass('did-insert-app');
  }, 1);
}

and using this.matchSelector('.app-did-render .liquid-wormhole-element') in my transitions.js.

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