Slide 178
Slide 178 text
this.transition(
this.fromRoute('products.index'),
this.toRoute('product'),
this.use('explode', {
matchBy: 'data-product-id',
use: ['flyTo', {duration: 300}]
}, {
use: ['toLeft', {duration: 300}]
}),
this.reverse('explode', {
matchBy: 'data-product-id',
use: ['flyTo', {duration: 300}]
}, {
use: ['toRight', {duration: 300}]
})
);
THIS IS THE CODE
app/transitions.js