Skip to content

Instantly share code, notes, and snippets.

@NullVoxPopuli
Last active November 21, 2018 19:08
Show Gist options
  • Save NullVoxPopuli/6bfc6f783a04ad7a2a2a28fe0d15234c to your computer and use it in GitHub Desktop.
Save NullVoxPopuli/6bfc6f783a04ad7a2a2a28fe0d15234c to your computer and use it in GitHub Desktop.
ember-animated issue replication
import Component from '@ember/component';
import fade from 'ember-animated/transitions/fade';
export default Component.extend({
fade,
fadeMessage: false,
mail: "Hello",
});
import Ember from 'ember';
export default Ember.Component.extend({
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
sayHi: false,
actions: {
toggleHi() {
this.set('sayHi', !this.sayHi);
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
<button {{action 'toggleHi'}}>Toggle Hi</button><br/>
<AnimatedSlide @isVisible={{this.sayHi}}>
<MyComponent />
</AnimatedSlide>
<br>
<br>
{{#animated-container}}
{{#animated-if @isVisible use=fade}}
{{yield}}
{{/animated-if}}
{{/animated-container}}
{
"version": "0.15.1",
"EmberENV": {
"FEATURES": {
}
},
"options": {
"use_pods": false,
"jquery-integration": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js",
"ember": "3.4.3",
"ember-template-compiler": "3.4.3",
"ember-testing": "3.4.3"
},
"addons": {
"ember-animated": "0.3.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment