Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

progress-linear: animation behavior varies in Chrome and IE #11495

Open
@sukanya-pai

Description

@sukanya-pai

Solution for variation in animation of md-progress-linear needed

Steps to reproduce the issue:

  1. Couldn't Recreate the issue in CodePen, JSFiddle and Plunkr as the animation issue of the progress indicator depends on the large number of data to be fetched and also not sure why the issue is happening just in the application. Hence attaching the css styles used and explaining in detail about the animation behavior. Hoping that it would suffice.
  2. Facing issue of different animation behavior in md-progress-linear in IE browser and animation behavior varies in Chrome when there is large data to be fetched.

Detailed Reproduction Steps:

  1. Currently using material version 1.1.6 for the development of an application.
  2. The Html for the linear progress bar used is
    <md-progress-linear md-mode="indeterminate"></md-progress-linear>

The css used for progress indicator and its animation which is used from the material version 1.1.6

md-progress-linear .md-container {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 5px;
    -webkit-transform: translate(0, 0) scale(1, 1);
            transform: translate(0, 0) scale(1, 1); }
    md-progress-linear .md-container .md-bar {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 100%;
      height: 5px; 
}
    md-progress-linear .md-container .md-dashed:before {
      content: "";
      display: none;
      position: absolute;
      margin-top: 0;
      height: 5px;
      width: 100%;
      background-color: transparent;
      background-size: 10px 10px !important;
      background-position: 0px -23px; 
}
    md-progress-linear .md-container .md-bar1, md-progress-linear .md-container .md-bar2 {
      -webkit-transition: -webkit-transform 0.2s linear;
      transition: -webkit-transform 0.2s linear;
      transition: transform 0.2s linear;
      transition: transform 0.2s linear, -webkit-transform 0.2s linear;
}

md-progress-linear .md-container.md-mode-indeterminate .md-bar1 {
      -webkit-animation: md-progress-linear-indeterminate-scale-1 4s infinite, md-progress-linear-indeterminate-1 4s infinite;
       animation: md-progress-linear-indeterminate-scale-1 4s infinite, md-progress-linear-indeterminate-1 4s infinite; 
}
    md-progress-linear .md-container.md-mode-indeterminate .md-bar2 {
      -webkit-animation: md-progress-linear-indeterminate-scale-2 4s infinite, md-progress-linear-indeterminate-2 4s infinite;
        animation: md-progress-linear-indeterminate-scale-2 4s infinite, md-progress-linear-indeterminate-2 4s infinite; }
    
  1. The application will be displaying the progress indicator running indeterminately when the data fetch operation is taking place. Please note the application deals with large amount of data. In case there is lesser number of data fetched, the behavior of linear loader works as expected.

What is the expected behavior?

The linear loader animation should traverse from left to right and then back to left to right in the loader bar repeatedly till the data is fetched in both Chrome and IE as in the link here.

What is the current behavior?

  1. Chrome: The linear loader animation traverses from left to middle and then back to left to middle repeatedly in the loader track till the data is fetched in . The bar is not traversing full stretch. just traversing half way when large data is to be loaded.
  2. IE 11: The loader animation originates from the center of the progress track and traverses in opposite directions (starts from centre, the left end of the bar traverses towards the left and the right end traverses towards the right and this is repeated until the data is fetched)

I want the behavior of the indeterminate linear loader to be same as in this for both the browsers in all the cases.

Could you please provide us the possible cause and resolution since we are not able to reproduce the same in any Demo (example Code Pen)?

Which versions of AngularJS, Material, OS, and browsers are affected?

  • AngularJS: 1.6
  • AngularJS Material: 1.1.6
  • OS: Windows 10
  • Browsers: Chrome and IE

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4: minorMinor issues. May not be fixed without community contributions.browser: IEThis issue is specific to Internet Explorerhotlist: animationstype: bug

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions