Skip to content

bug: ion-skeleton-text animation is not correct #22694

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
danielehrhardt opened this issue Dec 18, 2020 · 16 comments
Closed

bug: ion-skeleton-text animation is not correct #22694

danielehrhardt opened this issue Dec 18, 2020 · 16 comments
Labels
help wanted a good issue for the community package: core @ionic/core package type: bug a confirmed bug report

Comments

@danielehrhardt
Copy link
Contributor

danielehrhardt commented Dec 18, 2020

Bug Report

Ionic version:

[ ] 4.x
[x] 5.x

Current behavior:
If the skeleton text is used on a device like a Tablet it does flicker in the Middle of the Animation
captured

Expected behavior:
Smooth Animation no flickering.

Steps to reproduce:
<ion-skeleton-text [animated]="true" ></ion-skeleton-text>
Use this on a FullHD Browser window.

Related code:
https://stackblitz.com/edit/skeleton-flickering

Ionic info:

   Ionic CLI                     : 6.12.2 (C:\Users\Daniel\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 5.5.1
   @angular-devkit/build-angular : 0.1100.3
   @angular-devkit/schematics    : 11.0.3
   @angular/cli                  : 11.0.3
   @ionic/angular-toolkit        : 3.0.0

Capacitor:

   Capacitor CLI   : 2.4.4
   @capacitor/core : 2.4.4

Utility:

   cordova-res : 0.15.2
   native-run  : not installed

System:

   NodeJS : v14.15.1 (C:\Program Files\nodejs\node.exe)
   npm    : 6.14.9
   OS     : Windows 10
@ionitron-bot ionitron-bot bot added the triage label Dec 18, 2020
@danielehrhardt danielehrhardt changed the title bug: ion-skeleton-text flickering bug: ion-skeleton-text flickering on large devices Dec 18, 2020
@patrickbussmann
Copy link

Same issue here (on same project) 😀
(but with MacBook Pro Safari & Chrome)

@liamdebeasi
Copy link
Contributor

Thanks for the issue. What device are you testing this on? I cannot reproduce this on my end.

@liamdebeasi liamdebeasi added the needs: reply the issue needs a response from the user label Dec 18, 2020
@ionitron-bot ionitron-bot bot removed the triage label Dec 18, 2020
@danielehrhardt
Copy link
Contributor Author

Thanks for the issue. What device are you testing this on? I cannot reproduce this on my end.

You can see it in Google Chrome, Firefox, Edge.
https://skeleton-flickering.stackblitz.io

@ionitron-bot ionitron-bot bot added triage and removed needs: reply the issue needs a response from the user labels Dec 18, 2020
@danielehrhardt
Copy link
Contributor Author

danielehrhardt commented Dec 18, 2020

@liamdebeasi
Copy link
Contributor

Thanks for the browser info. What physical device are you testing this on? (MacBook Pro, iPad, etc)

I tested this in Chrome on a MacBook Pro (using the internal display as well as an external display) and cannot reproduce the issue.

@liamdebeasi liamdebeasi added the needs: reply the issue needs a response from the user label Dec 18, 2020
@ionitron-bot ionitron-bot bot removed the triage label Dec 18, 2020
@danielehrhardt
Copy link
Contributor Author

danielehrhardt commented Dec 18, 2020

Thanks for the browser info. What physical device are you testing this on? (MacBook Pro, iPad, etc)

I tested this in Chrome on a MacBook Pro (using the internal display as well as an external display) and cannot reproduce the issue.

Could you see the Issue in the Gif i attached?
Maybe you are not able to see what the Problem is?

I tested now also on my Mac with Safari and Google Chrome.

When the Shine goes to the end it will flicker.

@ionitron-bot ionitron-bot bot added triage and removed needs: reply the issue needs a response from the user labels Dec 18, 2020
@liamdebeasi
Copy link
Contributor

I can see the flickering in the "Hello" title in the gif. What kind of Mac are you testing on?

@liamdebeasi liamdebeasi added the needs: reply the issue needs a response from the user label Dec 18, 2020
@ionitron-bot ionitron-bot bot removed the triage label Dec 18, 2020
@danielehrhardt
Copy link
Contributor Author

danielehrhardt commented Dec 18, 2020

I can see the flickering in the "Hello" title in the gif. What kind of Mac are you testing on?

Okay, then you did not get what i mean.
When the Shine will arrive the end of the skeleton item it will reset a bit back.

@ionitron-bot ionitron-bot bot added triage and removed needs: reply the issue needs a response from the user labels Dec 18, 2020
@liamdebeasi
Copy link
Contributor

Thanks for the clarification. Now that I can reproduce 😄 . Let me look into this a bit more.

@danielehrhardt
Copy link
Contributor Author

Thanks for the clarification. Now that I can reproduce 😄 . Let me look into this a bit more.

Here is a possible fix:
https://stackblitz.com/edit/skeleton-flickering

@liamdebeasi
Copy link
Contributor

liamdebeasi commented Dec 18, 2020

I can reproduce this back to 4.11.13. I will look into a fix. edit: If someone wants to try and implement the other solution in #22694 (comment) or fix the issue using a modified background-position animation, please feel free! I will add the help wanted label.

@liamdebeasi liamdebeasi added package: core @ionic/core package type: bug a confirmed bug report labels Dec 18, 2020
@ionitron-bot ionitron-bot bot removed the triage label Dec 18, 2020
@liamdebeasi liamdebeasi changed the title bug: ion-skeleton-text flickering on large devices bug: ion-skeleton-text animation is not correct Dec 18, 2020
@liamdebeasi liamdebeasi added the help wanted a good issue for the community label Dec 18, 2020
@ionitron-bot
Copy link

ionitron-bot bot commented Dec 18, 2020

This issue has been labeled as help wanted. This label is added to issues that we believe would be good for contributors.

If you'd like to work on this issue, please comment here letting us know that you would like to submit a pull request for it. This helps us to keep track of the pull request and make sure there isn't duplicated effort.

For a guide on how to create a pull request and test this project locally to see your changes, see our contributing documentation.

Thank you!

@danielehrhardt
Copy link
Contributor Author

danielehrhardt commented Dec 18, 2020

I can reproduce this back to 4.11.13. I will look into a fix. edit: If someone wants to try and implement the other solution in #22694 (comment) or fix the issue using a modified background-position animation, please feel free! I will add the help wanted label.

I do not understand. I already attached a Solution for it?
Should i create a PR?
image

@liamdebeasi
Copy link
Contributor

If you think your solution would resolve the issue, then I recommend creating a PR. Instructions on how to do so can be found here: https://ionicframework.com/docs/contributing/how-to-contribute.

danielehrhardt added a commit to danielehrhardt/ionic-framework that referenced this issue Dec 18, 2020
danielehrhardt added a commit to danielehrhardt/ionic-framework that referenced this issue May 11, 2021
danielehrhardt added a commit to danielehrhardt/ionic-framework that referenced this issue May 11, 2021
danielehrhardt added a commit to danielehrhardt/ionic-framework that referenced this issue May 11, 2021
danielehrhardt added a commit to danielehrhardt/ionic-framework that referenced this issue May 17, 2021
danielehrhardt added a commit to danielehrhardt/ionic-framework that referenced this issue May 17, 2021
danielehrhardt added a commit to danielehrhardt/ionic-framework that referenced this issue May 17, 2021

Verified

This commit was signed with the committer’s verified signature.
Mic92 Jörg Thalheim
danielehrhardt added a commit to danielehrhardt/ionic-framework that referenced this issue May 17, 2021
@liamdebeasi
Copy link
Contributor

Thanks for the issue. This has been resolved via #22697, and a fix will be available in an upcoming release of Ionic Framework.

@ionitron-bot
Copy link

ionitron-bot bot commented Jun 23, 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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Jun 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted a good issue for the community package: core @ionic/core package type: bug a confirmed bug report
Projects
None yet
Development

No branches or pull requests

3 participants