revealHidden
Overview
Resolve whether chrome should be hidden, given a reveal strategy and the current scroll signals.
Pure and synchronous so it can be reused per bar by a multi-bar host (each bar applies its own strategy against one shared set of scroll signals) as well as by useScrollReveal itself.
Signature
revealHidden(strategy, state)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| strategy | boolean | ScrollRevealStrategy | yes | The reveal strategy, or a boolean (revealed when true). |
| state | ScrollRevealState | yes | The current scroll signals. |
Returns
boolean
true when the chrome should be hidden.
Source
client/lib/use/useScrollReveal.js:62