Skip to content
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

Last frame of animation should not be skipped #1368

Merged
merged 1 commit into from
Aug 20, 2019

Conversation

fbarbat
Copy link
Contributor

@fbarbat fbarbat commented Aug 18, 2019

Spectacle transitions skip the last render causing incomplete effects and partially loaded slides.

To reproduce it just inspect the DOM after the slide transitions and confirm that the final CSS transform values such as scale or translate3d do not reach final values (i.e. scale=1 or translate3d=0).

See https://codesandbox.io/s/simple-spectacle-example-e96d2 as an example. In this specific case, scale does not reach 1 but a number close to it such as 0.993772. In this case maybe it is not noticeable at a first look, but if the slide has many more components or the hardware is stressed, it could stop at lower values causing a very noticeable glitch in the layout.

Forcing the render on the terminating case should fix the issue.

Once this is fixed and released, Spectacle dependency on victory should be updated.

By the way, I am fixing this bug since I am implementing a cover letter using Spectacle to find a new job. Do you want to hire me? :D Please see https://fernandobarbat.com Thanks!

Spectacle transitions skipped the last render causing incomplete effects and partially loaded slides. Forcing the terminating case should fix the issue.
@boygirl
Copy link
Contributor

boygirl commented Aug 20, 2019

@fbarbat looks good! Thanks for this fix. I can release a patch today, and speak with the spectacle maintainer tomorrow. FWIW though, that project is undergoing a rewrite, and will use react-spring for animations in the near future.

Neat cover letter :) We have a couple location-specific positions open at the moment. Check them out here: https://formidable.com/careers/#open-positions

@boygirl boygirl merged commit 136281f into FormidableLabs:master Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants