Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

docs(transition): correct when classes are removed for CSS animations - #3509

Closed
guru-bharadwaj20 wants to merge 1 commit into
vuejs:mainfrom
guru-bharadwaj20:docs/css-animation-enter-from
Closed

guru-bharadwaj20 wants to merge 1 commit into
vuejs:mainfrom
guru-bharadwaj20:docs/css-animation-enter-from

Conversation

@guru-bharadwaj20

Copy link
Copy Markdown

Fixes #2630

Description of Problem

The CSS Animations section says *-enter-from is not removed right after the element is inserted, but on animationend. That isn't what Vue does, and it also contradicts the Transition Classes list on the same page, which says v-enter-from is removed one frame after insertion.

In packages/runtime-dom/src/components/Transition.ts, the enter hook removes the enter-from class inside nextFrame() whatever the transition type is. For animations, the thing that changes is the end event: whenTransitionEnds listens for animationend instead of transitionend, and once that fires, finishEnter removes enter-active and enter-to.

Proposed Solution

I reworded the sentence to say that the difference with CSS animations is the event Vue waits for (animationend instead of transitionend) before it removes *-enter-active and *-enter-to.

Additional Information

I ran pnpm run build and it passed. I also checked that the new sentence shows up in .vitepress/dist/guide/built-ins/transition.html.

Copilot AI balanced review requested due to automatic review settings November 28, 2026 16:57
@netlify

netlify Bot commented Nov 28, 2026

Copy link
Copy Markdown

👷 Deploy request for vuejs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 16957b7

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@guru-bharadwaj20 guru-bharadwaj20 closed this by deleting the head repository Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants