Skip to content

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

Description

@jesvijonathan

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions