react-routerで遷移するときにアニメーションをコンポーネントに適用したいと思います。これは初期ロード後にのみ実行できますが、初期マウントでもアニメーションを表示したい (ページの更新)。
これは私が試したものです。注transitionAppear: true
は何もしませんでした:
class App extends Component {
constructor() {
super();
}
render() {
let path = this.context.router.getCurrentPath();
path = path.substring(0, path.split('/', 2).join('/').length);
return (
Transitions({component: 'div', transitionName: 'fade', transitionAppear: true},
handler({key: path})
)
)
}
}