Add appear transition

This commit is contained in:
Sebastien Chopin 2017-08-18 16:46:54 +02:00
parent d96a48c3b4
commit b9c318be6a
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,6 @@
.appear-active {
transition: opacity .5s
}
.appear {
opacity: 0
}

View File

@ -1,5 +1,16 @@
module.exports = { module.exports = {
/*
** Single Page Application mode
** Means no SSR
*/
mode: 'spa', mode: 'spa',
/*
** Add css for appear transition
*/
css: ['~/assets/main.css'],
/*
** Cutomize loading indicator
*/
loadingIndicator: { loadingIndicator: {
/* /*
** See https://github.com/nuxt/nuxt.js/tree/dev/lib/app/views/loading for available loading indicators ** See https://github.com/nuxt/nuxt.js/tree/dev/lib/app/views/loading for available loading indicators
@ -15,6 +26,6 @@ module.exports = {
** - background: 'white' ** - background: 'white'
*/ */
color: '#222', color: '#222',
background: '#eee' background: 'white'
} }
} }