Page transition broken with nuxt-i18n
See original GitHub issueVersion
Reproduction link
Steps to reproduce
I have simple fade page transition
.page-enter-active {
backface-visibility: hidden;
will-change: opacity;
opacity: 1;
transition: opacity 450ms linear;
}
.page-leave-active {
backface-visibility: hidden;
will-change: opacity;
opacity: 1;
transition: opacity 450ms linear;
}
.page-enter {
opacity: 0;
}
.page-leave-active {
opacity: 0;
}
The problem is, when I change locale, text content changes instantly while page transition is not complete. In result I have a blink of content.
Is there’a a way to solve this?
What is expected ?
No blink, smooth transition
What is actually happening?
Transition broken, content blink
<div align="right">This bug report is available on Nuxt community (#c163)</div>Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:34
Top Results From Across the Web
Page transition broken with nuxt-i18n · Issue #150 - GitHub
The problem is, when I change locale, text content changes instantly while page transition is not complete. In result I have a blink...
Read more >Locale keeps resetting between switching pages. Nuxt-i18n
I am trying to set up localization for my Nuxt frontend. Every time I switch to English and then move to an other...
Read more >[Solved]-Nuxt transition not working on diffents layouts-Vue.js
Nuxt separates the two because page transitions are more granular and may need more specific body adjustments between shared page layouts.
Read more >Lang Switcher - i18n-module
Wait for page transition. By default, the locale will be changed right away when navigating to a route with a different locale which...
Read more >Options - i18n-module
This is useful if you want to wait for the page transition to end before setting the locale yourself using finalizePendingLocaleChange .
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@lu40 thanks, but returning transition name should not be empty
''
becouse it will be replaced to default. Should return any character, e.g:The transition is copy-pasted from the original issue description. @thariddler I guess this is the behaviour you were talking about?
For me the following workaround does the job:
However this disables page transitions when switching the language instead of replacing the translated content smoothly while fading back in.