2015-11-18 13:50:48 +03:00
|
|
|
export default function () {
|
|
|
|
this.transition(
|
2016-10-07 16:27:39 +03:00
|
|
|
this.hasClass('fullscreen-modal-container'),
|
|
|
|
this.toValue(true),
|
|
|
|
this.use('fade', {duration: 150}),
|
2017-05-23 19:45:25 +03:00
|
|
|
this.reverse('fade', {duration: 150})
|
2015-11-18 13:50:48 +03:00
|
|
|
);
|
2016-04-15 17:45:50 +03:00
|
|
|
|
|
|
|
this.transition(
|
|
|
|
this.hasClass('fade-transition'),
|
|
|
|
this.use('crossFade', {duration: 100})
|
|
|
|
);
|
2017-06-08 18:00:10 +03:00
|
|
|
|
|
|
|
this.transition(
|
|
|
|
this.hasClass('tour-container'),
|
|
|
|
this.toValue(true),
|
|
|
|
this.use('fade', {duration: 150}),
|
|
|
|
this.reverse('fade', {duration: 150})
|
|
|
|
);
|
|
|
|
|
|
|
|
this.transition(
|
|
|
|
this.hasClass('tour'),
|
|
|
|
this.toValue(true),
|
|
|
|
this.use('fade', {duration: 300}),
|
|
|
|
this.reverse('fade', {duration: 300})
|
|
|
|
);
|
2017-08-02 10:05:59 +03:00
|
|
|
|
|
|
|
// TODO: Maybe animate with explode. gh-unsplash-window should ideally slide in from bottom to top of screen
|
|
|
|
// this.transition(
|
|
|
|
// this.hasClass('gh-unsplash-window'),
|
|
|
|
// this.toValue(true),
|
|
|
|
// this.use('toUp', {duration: 500}),
|
|
|
|
// this.reverse('toDown', {duration: 500})
|
|
|
|
// );
|
2015-11-18 13:50:48 +03:00
|
|
|
}
|