Skip to content

Instantly share code, notes, and snippets.

@billdami
billdami / app.transitions.js
Created June 19, 2017 20:46 — forked from jacobq/app.transitions.js
Modal Dialog Test
// Problem happens regardless of duration, but unless using
// the `.velocity-animating` CSS hack it is easier to see with longer durations.
const options = {duration: 1000, easing: 'easeInOutQuad'};
export default function(){
this.transition(
// this works
//this.use('fade')
// this has a glitch; can see second copy/ghost of modal in top left when closing
@billdami
billdami / controllers.application.js
Created May 18, 2018 12:29 — forked from sukima/controllers.application.js
Possible two-task approach
import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
navIntro() {
this.transitionToRoute('index');
},
navExample() {
this.transitionToRoute('example');
}
import Ember from 'ember';
import { task, timeout } from 'ember-concurrency';
import GiphyClient from '../lib/giphy-client';
const { Component, computed, get, set, isBlank } = Ember;
const GIPHY_DEBOUNCE = 1000;
export default Component.extend({
init() {
this._super(...arguments);