mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Add animations
This commit is contained in:
parent
1165713b82
commit
8682aa2d01
@ -1,4 +1,5 @@
|
||||
module.exports = {
|
||||
loading: false,
|
||||
head: {
|
||||
meta: [
|
||||
{ charset: 'utf-8' },
|
||||
|
@ -9,7 +9,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
<div class="right">
|
||||
<nuxt-child/>
|
||||
<nuxt-child :key="$route.params.id"/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -23,6 +23,16 @@ export default {
|
||||
</script>
|
||||
|
||||
<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 {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
|
Loading…
Reference in New Issue
Block a user