Skip to content

Animations not mantaining width after it ends #24698

Closed

Description

@Hbck

[ x] Bug report

Current behavior

When the animation completes, its width reverts to the original value defined in css/html. The width values from the states are completely ignored.

Expected behavior

The width after the animation completes should be the same as the corresponding state.

Minimal reproduction of the problem with instructions

https://plnkr.co/edit/ZtbBlsVC4IwvR9u58acF?p=preview

What is the motivation / use case for changing the behavior?

Proper animation and styling.

Environment

Windows 10, Angular version: 6.0.2, npm, angular cli

Browser:

  • [ x] Chrome (desktop) version 67.0

Other

A somewhate related issue: #16919

Activity

  1. added
    area: animations
    on Jul 12, 2018
  2. added this to the needsTriage milestone on Jul 12, 2018
  3. modified the milestones: needsTriage, Backlog on Jul 17, 2018
  4. added
    P3
    and removed on Oct 1, 2020
  5. dario-piotrowicz commented on Jul 4, 2021

    @dario-piotrowicz
    Contributor

    The issue still exists in angular 12, I've re-created the example in stackblitz: https://stackblitz.com/edit/angular-animation-end-width-bug

    and opened a PR with the fix 🙂

  6. JoostK commented on Jul 20, 2021

    @JoostK
    Member

    Fixed in #42763

  7. angular-automatic-lock-bot commented on Aug 20, 2021

    @angular-automatic-lock-bot

    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.

  8. locked and limited conversation to collaborators on Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3area: animationsfreq2: mediumtype: bug/fix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions