Skip to content

Conversation

@DavMila
Copy link
Contributor

@DavMila DavMila commented Jan 5, 2026

This adds an explainer for the trigger-scope property.

This adds an explainer for the trigger-scope property.
}

.section {
timeline-trigger: --trigger view() contain;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be far more compelling to show an example where the trigger source is a different element than the one animating. In theory this sort of use case would be possible with anonymous triggers. E.g. maybe the animating element is a descendant of the trigger, or a sibling to it.

}

.section {
trigger-scope: all;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would probably be better for a canonical example to be explicit about the trigger being scoped here, i.e. trigger-scope: --trigger

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

Successfully merging this pull request may close these issues.

2 participants