Skip to content

[6.x] Use entry animations and a base view transition to smooth out Vue loading in#12454

Merged
jasonvarga merged 56 commits intomasterfrom
view-transitions
Sep 17, 2025
Merged

[6.x] Use entry animations and a base view transition to smooth out Vue loading in#12454
jasonvarga merged 56 commits intomasterfrom
view-transitions

Conversation

@jaygeorge
Copy link
Copy Markdown
Contributor

@jaygeorge jaygeorge commented Sep 15, 2025

The CP uses a lot of Vue, which causes some jarring layout pop-in.

This PR tries to make things a lot smoother with a mixture of a base view-transition, which mostly handles the exit state (things fading out), mixed with an opacity transition so things "fade in" rather than pop in.

I've used very low timing values, so the page should still feel very quick to load, and you should feel the animation rather than see it.

Some things to note:

  • I initially tried to exclusively use view transitions to solve the Vue problem, but they don't seem to be particularly effective when a new page loads.
    • I believe this is due to the delayed page render because of the heavy JavaScript payload.
    • However, a base view transitions does seem to be effective at handling the exit state of the page and wherever we aren't using Vue, such as the sidebar nav
  • The most effective way of smoothing out page entries was:
    • Removing the v-cloak from the main container and instead selectively using it on components that were heavier to load. This means the main container that was previously cloaked is no longer blank any more in between pages
    • The skeleton-ui is no longer needed, so I've removed that
    • We're using the newer @starting-style so we can animate on load
    • We're also using the brand new sibling-index()function to stagger animations by a very tiny amount so the load-in feels a little more natural. This is a progressive enhancement

jaygeorge and others added 30 commits September 12, 2025 11:20
jasonvarga and others added 26 commits September 15, 2025 14:21
…ent langauge combobox arrow from collapsing in the header when browser caching is on
…y reflect what it does (and hopefully make Jason happier)
@jasonvarga jasonvarga merged commit 2f74fbd into master Sep 17, 2025
18 checks passed
@jasonvarga jasonvarga deleted the view-transitions branch September 17, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants