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

Animation range can not be negative #222

Open
bramus opened this issue Feb 2, 2024 · 0 comments
Open

Animation range can not be negative #222

bramus opened this issue Feb 2, 2024 · 0 comments

Comments

@bramus
Copy link
Collaborator

bramus commented Feb 2, 2024

Try https://flackr.github.io/scroll-timeline/demo/view-timeline/ and check “Use inset 100px 200px”.

Now keep an eye on the bar with the range entry 150% exit -50%. Because of the insets, the end range comes before the start range. As a result, the animation should jump from 0% to 100% when crossing the entry 150% line, because exit -50% was already crossed. With the polyfill however, the animation runs on the range exit -50% entry 150%.

The polyfill seems to allow the ranges to cross each other, resulting in a negative range.

I don’t immediately see this mentioned in the specI might be overlooking things – but it does appear in Blink’s source.

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

No branches or pull requests

1 participant