Skip to content

Instantly share code, notes, and snippets.

@seanjohnson08
Created July 13, 2016 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanjohnson08/6c22f37fcf80ab116d1b6b978a28f347 to your computer and use it in GitHub Desktop.
Save seanjohnson08/6c22f37fcf80ab116d1b6b978a28f347 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'button',
classNameBindings: ['animating'],
animating: false,
click() {
this.toggleProperty('animating');
}
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
body {
margin: 12px 16px;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 12pt;
}
button {
transition: all 2s;
}
.animating {
padding: 100px;
}
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{animated-component}}
<br>
<br>
{
"version": "0.10.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.6.0",
"ember-data": "2.6.1",
"ember-template-compiler": "2.6.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment