Skip to content

Option to show first sticky before hitting first trigger #155

Description

@jimjam-slam

In #139 I noticed that videos are a case where you'd often want the video visible (whether or not it's playing) before you hit the first trigger. Having a block of colour there sometimes sucks, and I think even outside video there are cases where you'd want the first sticky visible upfront.

I think this can be handled with CSS (it's essentially "the first sticky, when the section does not have an active sticky"), so it's mostly a matter of whether we want an opt-out class on our .cr-section (say .hide-first-sticky) or an opt-in one (.show-first-sticky). What do you think, @andrewpbray?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions