-
-
Save catc/803b3eabcd3c037b8aef2fecf9457bcd to your computer and use it in GitHub Desktop.
Form check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
state: 'one', | |
actions: { | |
changeState: function(val){ | |
this.set('state', val); | |
} | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export function eq([lhs, rhs]) { | |
console.log(lhs, rhs) | |
return lhs === rhs; | |
} | |
export default Ember.Helper.helper(eq); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
margin: 12px 16px; | |
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
font-size: 12pt; | |
} | |
.controls { | |
overflow: visible; | |
} | |
.controls > div { | |
overflow: visible; | |
} | |
button { | |
color: black; | |
background: yellow; | |
padding: 20px 10px; | |
} | |
.main-controls { | |
display: flex; | |
flex-direction: row; | |
justify-content: space-between; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { animate, Promise } from 'liquid-fire'; | |
export default function (a,b,c,d) { | |
const dur = 800; | |
return Promise.all([ | |
animate(this.oldElement, { | |
translateY: -60, | |
opacity: [0, 1] | |
}, { | |
easing: [0.68, -0.55, 0.265, 1.55], | |
duration: dur, | |
}), | |
animate(this.newElement, { | |
opacity: [1, 0], | |
translateY: [0, -60] | |
}, { | |
easing: [0.54,-0.34,0.4,1.02], | |
duration: dur | |
}) | |
]); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function(){ | |
this.transition( | |
this.hasClass('controls'), | |
// this.childOf('.zz'), | |
// this.fromValue(true), | |
this.use('anim-one', 1, { | |
duration: 600 | |
})/*, | |
this.reverse('anim-one', -1, { | |
duration: 600 | |
})*/ | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.10.4", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": true, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.6.2", | |
"ember-data": "2.6.2", | |
"ember-template-compiler": "2.6.2" | |
}, | |
"addons": { | |
"liquid-fire": "0.23.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment