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

scrollProgress var(—prog) for dynamic non-js value update #26

Open
jesvijonathan opened this issue Aug 14, 2023 · 0 comments
Open

scrollProgress var(—prog) for dynamic non-js value update #26

jesvijonathan opened this issue Aug 14, 2023 · 0 comments

Comments

@jesvijonathan
Copy link
Owner

We can use scrollProgress callBacks for manually handling the event but would be nice if there was support for dynamically changing
CSS var() properties so that we can add it to the elements css to update the style on scroll directly without having to create a handler for it.

  • Default
    var(--jos_scroll)
    var(--jos_scroll_reverse)
  • Conversions
    var(--jos_scroll_perc)
    var(--jos_scroll_deg)
  • Others
    var(--jos_windowScroll)
    var(--jos_windowScroll_reverse)
    var(--jos_rootScroll_reverse)
    var(--jos_rootScroll)
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