Skip to content

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

NameTypeRequiredDescription
strategyboolean | ScrollRevealStrategyyesThe reveal strategy, or a boolean (revealed when true).
stateScrollRevealStateyesThe current scroll signals.

Returns

boolean

true when the chrome should be hidden.

Source

client/lib/use/useScrollReveal.js:62

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2