Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

nuxt page transition

.layout-enter-active,
.page-enter-active,
.layout-leave-active,
.page-leave-active {
    transition: opacity 400ms, transform 400ms;
}

.layout-enter,
.page-enter {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
}

.layout-enter-to,
.page-enter-to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.layout-leave,
.page-leave {
    opacity: 1;
}

.layout-leave-to,
.page-leave-to {
    opacity: 0;
}
Source by nuxtjs.org #
 
PREVIOUS NEXT
Tagged: #nuxt #page #transition
ADD COMMENT
Topic
Name
6+6 =