Skip to content

CSS Transition not working when using from style.scss #21447

@narendrasinghrathore

Description

@narendrasinghrathore

Reproduction

Use StackBlitz to reproduce your issue:

Steps to reproduce:

  1. Create two class with different name with same transition property
  2. Add one in style.scss and other one in your-component.scss
  3. Transition property work as expected when used from your component, but not working from style.scss

transition-issue

Expected Behavior

What behavior were you expecting to see?
Should have similar behavior.

Actual Behavior

What behavior did you actually see?
Transition not working whereas media queries are working when using from style.scss.
Either nothing works or all works.

Environment

 "@angular/animations": "^10.0.9",
    "@angular/cdk": "11.0.3",
    "@angular/common": "^10.0.9",
    "@angular/compiler": "^10.0.9",
    "@angular/core": "^10.0.9",
    "@angular/forms": "^10.0.9",
    "@angular/material": "^11.0.3",
    "@angular/platform-browser": "^10.0.9",
    "@angular/platform-browser-dynamic": "^10.0.9",
    "@angular/router": "^10.0.9",
    "rxjs": "^6.6.2",
    "tslib": "^2.0.1",
    "zone.js": "^0.10.3"
  • Browser(s): Chrome
  • Operating System - Windows, Generic

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions