diff --git a/examples/routes-transitions/assets/main.css b/examples/routes-transitions/assets/main.css index 69fc2cf872..b70172dea4 100644 --- a/examples/routes-transitions/assets/main.css +++ b/examples/routes-transitions/assets/main.css @@ -1,7 +1,12 @@ +body { + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; +} + .container { text-align: center; padding-top: 200px; font-size: 20px; + transition: all .5s cubic-bezier(.55,0,.1,1); } .page-enter-active, .page-leave-active { @@ -27,3 +32,14 @@ 50% { transform: scale(1.5) } 100% { transform: scale(0) } } + +.slide-left-enter, +.slide-right-leave-active { + opacity: 0; + transform: translate(30px, 0); +} +.slide-left-leave-active, +.slide-right-enter { + opacity: 0; + transform: translate(-30px, 0); +} diff --git a/examples/routes-transitions/nuxt.config.js b/examples/routes-transitions/nuxt.config.js index f7cde1801a..b904282bbc 100644 --- a/examples/routes-transitions/nuxt.config.js +++ b/examples/routes-transitions/nuxt.config.js @@ -1,5 +1,7 @@ module.exports = { - css: [ - 'assets/main.css' - ] + build: { + vendor: ['axios'] + }, + css: ['assets/main.css'], + loading: false } diff --git a/examples/routes-transitions/package.json b/examples/routes-transitions/package.json index 3239b96fca..6156fd4ed1 100644 --- a/examples/routes-transitions/package.json +++ b/examples/routes-transitions/package.json @@ -2,14 +2,12 @@ "name": "routes-transition", "description": "", "dependencies": { + "axios": "^0.15.3", "nuxt": "latest" }, "scripts": { - "start": "../../bin/nuxt" - }, - "config": { - "nuxt": { - "port": 4000 - } + "dev": "nuxt", + "build": "nuxt build", + "start": "nuxt start" } } diff --git a/examples/routes-transitions/pages/index.vue b/examples/routes-transitions/pages/index.vue index dfbaebf001..fe5ce74005 100644 --- a/examples/routes-transitions/pages/index.vue +++ b/examples/routes-transitions/pages/index.vue @@ -1,6 +1,7 @@ diff --git a/examples/routes-transitions/pages/users.vue b/examples/routes-transitions/pages/users.vue new file mode 100644 index 0000000000..1b22f3a71b --- /dev/null +++ b/examples/routes-transitions/pages/users.vue @@ -0,0 +1,72 @@ + + + + +