w3c / w3c/csswg-drafts

[scroll-animations-1] Triggering scroll-based animations once

Open
#7,478 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

scroll-animations-2
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

In https://github.com/w3c/csswg-drafts/issues/4354#issuecomment-824929221 @JayGeorge wrote:

Would it be possible only to trigger scroll-based animations once?

This is an option in the scroll-trigger library 'AOS' (or 'Animate on Scroll') – https://github.com/michalsnik/aos#1-initialize-aos
– See the 'once' option.

The use case would be: Sometimes, I would like to scroll back up a page and re-read content without having it 'introduced' a second time with animation. For me, this is like a halfway house between some animation but not too much.

Wanted to file this into its own issue for consideration.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the discussion linked from CSSWG issue 4354, especially the referenced comment and the AOS “once” option. Investigate how a one-time trigger for scroll-based animations should be specified, including the behavior when scrolling back. Done means the CSS Working Group has resolved the proposal and documented the resulting specification changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.