question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: ion-progress-bar transition cannot be overridden

See original GitHub issue

Bug Report

Ionic version:

[ ] 4.x [x] 5.x

Current behavior: When having quick data value updates (< 150ms), the ion-progress-bar components “jumps” back since the transition of the progress element has not finished yet. Since no CSS vars are used for that and there is no chance to use slots for injecting a progress element, that you can apply custom CSS rules to, there is no possibility to change the transition-duration.

Please see this video (dropbox link) for a demonstration.

Expected behavior: Possibility to change transition-duration for ion-progress-bar via CSS vars.

Steps to reproduce:

  1. Add an ion-progress-bar component to a template.
  2. Bind the data attribute to a local property.
  3. Create a loop (e.g. via setInterval) with a short update interval (< 150ms) to manipulate the bound property.
  4. See the ion-progress-bar component tremble.

Repository with demo/reproduction code:

https://github.com/JZubero/ion-progress-bar-Issue-21820

Ionic info:

Ionic:

   Ionic CLI                     : 6.10.1 (/home/js/.nvm/versions/node/v10.15.0/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.3.0
   @angular-devkit/build-angular : 0.803.28
   @angular-devkit/schematics    : 8.3.28
   @angular/cli                  : 8.3.28
   @ionic/angular-toolkit        : 2.2.0

Capacitor:

   Capacitor CLI   : 2.2.0
   @capacitor/core : 2.2.0

Utility:

   cordova-res (update available: 0.15.1) : 0.14.0
   native-run                             : 1.0.0

System:

   NodeJS : v10.15.0 (/home/js/.nvm/versions/node/v10.15.0/bin/node)
   npm    : 6.14.6
   OS     : Linux 5.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
brandyscarneycommented, Mar 4, 2021

Thank you for the issue! We have added CSS Shadow Parts to the Progress bar in #22938. It can be used like the following:

ion-progress-bar::part(progress) {
  transition: none;
}

This will be in the 5.6.0 release. 🙂

0reactions
ionitron-bot[bot]commented, Apr 3, 2021

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ion-progress-bar doesn't show correctly when inside a ...
I've done a #loading template with an ion progress bar inside, but it doesn't show on the footer of the page (nor in...
Read more >
Animations - Ionic Framework
Ionic apps use Web Animations API to build and run animations. Learn how this utility lets developers build complex animations in a platform...
Read more >
ION Management Module (IONMM)
Revised for ION Rel. 1.2.1 with: 1) Increased Rate Limiting options. 2) SNMPv3. 3) BOOTP IP ad- dressing. 4) Strict Priority Queuing.
Read more >
react-circular-progressbar - npm
Animating progressbar upon component mount or upon visible ... To animate the progressbar only when it becomes visible (e.g. if it's below the ......
Read more >
signature=14611b395b980b0944234a35b2c772db,ionic-framework ...
5.3.3 (2020-09-17)Bug Fixesdatetime: do not reset to am when changing hour ... modal: allow swipe to close animation to be overridden (#20585) (8d3ce8d), ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found