Add animations

This commit is contained in:
Sebastien Chopin 2017-08-01 15:54:29 +02:00
parent 1165713b82
commit 8682aa2d01
2 changed files with 12 additions and 1 deletions

View File

@ -1,4 +1,5 @@
module.exports = { module.exports = {
loading: false,
head: { head: {
meta: [ meta: [
{ charset: 'utf-8' }, { charset: 'utf-8' },

View File

@ -9,7 +9,7 @@
</ul> </ul>
</div> </div>
<div class="right"> <div class="right">
<nuxt-child/> <nuxt-child :key="$route.params.id"/>
</div> </div>
</div> </div>
</template> </template>
@ -23,6 +23,16 @@ export default {
</script> </script>
<style scoped> <style scoped>
.page-enter-active, .page-leave-active {
transition: opacity .4s, transform .4s;
transform-style: preserve-3d;
backface-visibility: hidden;
opacity: 1;
}
.page-enter, .page-leave-active {
opacity: 0.5;
transform: rotateY(100deg);
}
.container { .container {
width: 100%; width: 100%;
margin: 0; margin: 0;