1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/app/transitions.js
Kevin Ansfield 7e4d385de8 refactor gh-fullscreen-modal component to use liquid-wormhole directly (#281)
no issue

- remove `liquid-tether` dependency
- add `liquid-wormhole` dependency (previously a dependency of liquid-tether)
- refactor `gh-fullscreen-modal` to simplify and use `liquid-wormhole` directly instead of `liquid-tether` as we don't need the positioning ability that `liquid-tether` provides
- fixes broken View/Component tree in Ember Inspector 🎉
2016-10-07 14:27:39 +01:00

18 lines
483 B
JavaScript

export default function () {
this.transition(
this.hasClass('fullscreen-modal-container'),
this.toValue(true),
this.use('fade', {duration: 150}),
this.reverse('explode', {
pick: '.fullscreen-modal',
use: ['fade', {duration: 80}]
}, {
use: ['fade', {duration: 150}]
})
);
this.transition(
this.hasClass('fade-transition'),
this.use('crossFade', {duration: 100})
);
}