Skip to content

Conversation

@thePunderWoman
Copy link
Contributor

@thePunderWoman thePunderWoman commented Jul 24, 2025

This deprecates the animations package in favor of using animate.enter and animate.leave with intent to remove the full package in v22.2.

DEPRECATED: @angular/animations

@thePunderWoman thePunderWoman added area: animations action: review The PR is still awaiting reviews from at least one requested reviewer target: minor This PR is targeted for the next minor release labels Jul 24, 2025
@ngbot ngbot bot added this to the Backlog milestone Jul 24, 2025
@thePunderWoman thePunderWoman force-pushed the deprecate-animation-package branch from b3a4835 to dbf0128 Compare July 24, 2025 13:33
Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

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

LGTM

Reviewed-for: public-api

@pullapprove pullapprove bot requested a review from crisbeto July 24, 2025 14:35
Copy link
Contributor

@mmalerba mmalerba left a comment

Choose a reason for hiding this comment

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

reviewed-for: public-api

@JeanMeche JeanMeche added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer action: merge The PR is ready for merge by the caretaker labels Jul 24, 2025
@thePunderWoman thePunderWoman force-pushed the deprecate-animation-package branch from dbf0128 to eba87ea Compare July 24, 2025 15:57
@angular-robot angular-robot bot added the detected: deprecation PR contains a commit with a deprecation label Jul 24, 2025
This deprecates the animations package in favor of using `animate.enter` and `animate.leave` with intent to remove the full package in v22.2.

DEPRECATED: @angular/animations
@thePunderWoman thePunderWoman force-pushed the deprecate-animation-package branch from eba87ea to dc9fa37 Compare July 24, 2025 18:34
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

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

Reviewed-for: public-api

@thePunderWoman thePunderWoman added the action: merge The PR is ready for merge by the caretaker label Jul 29, 2025
@thePunderWoman
Copy link
Contributor Author

This PR was merged into the repository by commit 9766116.

The changes were merged into the following branches: main

@ilyakonrad
Copy link

in favor of using animate.enter and animate.leave

What does this refer to?

@JeanMeche
Copy link
Member

JeanMeche commented Jul 29, 2025

#62528 #62682 #62764, and more generally a the recent RFC on the feature : #62212 (summary #62524)

Edit: The dedicated docs are landing here #62874

@princemaple
Copy link

princemaple commented Aug 21, 2025

I saw that BrowserAnimationsModule was also deprecated. I tried removing it, but animate.leave wouldn't work without it. Is this expected? If so, when/how will animate.leave work without it?

EDIT: add some context - updated to 20.2 today.

@JeanMeche
Copy link
Member

animate.leave works without any import or provider.

@princemaple
Copy link

animate.leave works without any import or provider.

Huh that's weird. I'll do more digging. Thanks for the reply.

@JeanMeche
Copy link
Member

Make sure to have a look at the dedicated doc page ! https://angular.dev/guide/animations/enter-and-leave

@thePunderWoman
Copy link
Contributor Author

@princemaple if you do continue to have programs, definitely open an issue with a repro. That goes a long way.

@princemaple
Copy link

FYI enter works with or without BrowserAnimationsModule. It's just leave I had problems with, in a @for. I'll do more digging and come back with a repro if I can't get to the end. Cheers.

@princemaple
Copy link

I think there indeed is a bug somewhere. Please see #63307

@mdex-geek
Copy link

are angular removing the animation package @thePunderWoman completely

@mdex-geek
Copy link

if yes then what we going to use then a core css or new package will come if new package come that will be great

@thePunderWoman
Copy link
Contributor Author

@mdex-geek Yes we will in v23. We've already created replacement animation APIs that are available. See https://angular.dev/guide/animations/enter-and-leave, mentioned earlier.

@JeanMeche
Copy link
Member

@mdex-geek Use modern in most cases. For entre/leave animations we also provide custom template instructions : https://angular.dev/guide/animations/enter-and-leave

@thePunderWoman thePunderWoman deleted the deprecate-animation-package branch September 12, 2025 16:37
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: animations detected: deprecation PR contains a commit with a deprecation target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants