Title: :enter animation doesn't animate opacity · Issue #46833 · angular/angular · GitHub
Open Graph Title: :enter animation doesn't animate opacity · Issue #46833 · angular/angular
X Title: :enter animation doesn't animate opacity · Issue #46833 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? animations Is this a regression? Yes Description I have some components that should be rendered and destroyed with animation which changes transform, border radius and opacity proper...
Open Graph Description: Which @angular/* package(s) are the source of the bug? animations Is this a regression? Yes Description I have some components that should be rendered and destroyed with animation which changes tra...
X Description: Which @angular/* package(s) are the source of the bug? animations Is this a regression? Yes Description I have some components that should be rendered and destroyed with animation which changes tra...
Opengraph URL: https://github.com/angular/angular/issues/46833
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":":enter animation doesn't animate opacity","articleBody":"### Which @angular/* package(s) are the source of the bug?\r\n\r\nanimations\r\n\r\n### Is this a regression?\r\n\r\nYes\r\n\r\n### Description\r\n\r\nI have some components that should be rendered and destroyed with animation which changes transform, border radius and opacity properties, so I use `:enter` and `:leave` animations. It worked perfectly prior to upgrading to v14.\r\n\r\nNow in v14 `:leave` animation is working as it did in v13, while `:enter` stopped animating opacity.\r\n\r\n### Please provide a link to a minimal reproduction of the bug\r\n\r\nhttps://stackblitz.com/edit/angular-ivy-5ktwcj \r\n\r\n### Please provide the exception or error you saw\r\n\r\n_No response_\r\n\r\n### Please provide the environment you discovered this bug in (run `ng version`)\r\n\r\n```true\r\nAngular CLI: 14.0.5\r\nNode: 16.13.1\r\nPackage Manager: yarn 1.22.15 \r\nOS: win32 x64\r\n\r\nAngular: 14.0.5\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... platform-server, router, service-worker\r\n\r\nPackage Version\r\n------------------------------------------------------------ \r\n@angular-devkit/architect 0.1400.5\r\n@angular-devkit/build-angular 14.0.5\r\n@angular-devkit/core 14.0.5\r\n@angular-devkit/schematics 14.0.5\r\n@angular/cdk 14.0.4\r\n@angular/fire 7.4.1\r\n@angular/material 14.0.4\r\n@angular/material-moment-adapter 14.0.4\r\n@schematics/angular 14.0.5\r\nrxjs 6.6.7\r\ntypescript 4.6.4\r\nwebpack 5.73.0\r\n```\r\n\r\n\r\n### Anything else?\r\n\r\nHere's how it worked in the version 13.3.11 https://stackblitz.com/edit/angular-ivy-dtsfmi.\r\nSame code, same everything except the version of @angular/animations.\r\n\r\n\r\nAlso here's my `animations` setup:\r\n\r\n```\r\nanimations: [\r\n trigger('popupAnimation', [\r\n transition(':enter', [\r\n group([\r\n query('.ns-popup-overlay', style({ opacity: 0 })),\r\n query('.ns-popup', style({ transform: 'scale(0.95) translateY(-50px)', borderRadius: '24px' })),\r\n query('.ns-popup-overlay', animate('0.3s ease-in-out', style({ opacity: 1 }))),\r\n query(\r\n '.ns-popup',\r\n animate('0.3s ease-in-out', style({ transform: 'scale(1) translateY(0)', borderRadius: '6px' }))\r\n )\r\n ])\r\n ]),\r\n transition(':leave', [\r\n group([\r\n query('.ns-popup-overlay', style({ opacity: 1 })),\r\n query('.ns-popup', style({ transform: 'scale(1) translateY(0)' })),\r\n query('.ns-popup-overlay', animate('0.3s ease-in-out', style({ opacity: 0 }))),\r\n query('.ns-popup', animate('0.3s ease-in-out', style({ transform: 'scale(0.9) translateY(0)' })))\r\n ])\r\n ])\r\n ])\r\n]\r\n```","author":{"url":"https://github.com/ilyakonrad","@type":"Person","name":"ilyakonrad"},"datePublished":"2022-07-14T06:52:16Z","url":"https://github.com/angular/angular/issues/46833"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5bfb0f6c-51b2-083d-5630-b66dec8f6fd7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C524:16EED3:BF85B3:F4B2F7:6B00FD53 |
| html-safe-nonce | f27429fd620f55ce91a2ee3e226b467f0319e147b4e26b76d3803b2cce32575b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTI0OjE2RUVEMzpCRjg1QjM6RjRCMkY3OjZCMDBGRDUzIiwidmlzaXRvcl9pZCI6IjMwMDAwNDE2NjMxNDI4ODY3MzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 94ab04a254c846b686c6cd29a09a08d008965548056138c33f79648f47535b93 |
| hovercard-subject-tag | issue:1304340584 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/46833/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bdcf3d3eb12512fec6ad2d114b35ce1d3a4f5ea63093cf54ea9de195bbf8b219/angular/angular/issues/46833 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bdcf3d3eb12512fec6ad2d114b35ce1d3a4f5ea63093cf54ea9de195bbf8b219/angular/angular/issues/46833 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? animations Is this a regression? Yes Description I have some components that should be rendered and destroyed with animation which changes tra... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ilyakonrad |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width