Skip to content

Conversation

@majido
Copy link
Contributor

@majido majido commented Feb 5, 2020

Make improvements to CSS syntax based on previous CSSWG discussions.

New at-rule

This addresses issue #4338 .

Introduce @timeline at-rule. The rule is used to specify parameters for scroll timeline (but can later
be used for regular timelines as well).

The animation-timeline property would select the appropriate at-rule based on its name.

I have also added language to allow existing animation-name property to be used for this as well. This will improve ergonomics IMO. But I can drop this part and have it as a separate PR if there is concern.

Shorter names for Scroll Timeline properties

This addresses #4336

Use shorter names for properties:

  • startScrollOffset -> start
  • endScrollOffset -> end
  • scrollSource -> source (optional)

Other changes

Minor changes to avoid bikeshed WARNING:

  • disambiguate reference to rAF
  • Reference layout cycle

@majido majido requested a review from birtles February 5, 2020 22:04
@majido majido added the scroll-animations-1 Current Work label Feb 5, 2020
@birtles
Copy link
Contributor

birtles commented Feb 10, 2020

I had a quick glance at this today and it looks good so far. I wonder if I'm the best reviewer though?

@majido
Copy link
Contributor Author

majido commented Feb 11, 2020

@birtles thanks for the high level check! I agree that we should use your limited time more effectively so I rather you stay focused on #2066 and potential PR for that.

As I suggested offline we should share the review load for this spec across all editors and I am working to ensure we have enough active editors on this specification to help make forward progress.

@graouts or @theres-waldo would either of you be able to review this for scroll-linked animations?

@majido majido requested review from graouts and removed request for birtles February 20, 2020 17:36
majido added 2 commits March 26, 2020 11:02
Introduce @timeline at-rule
Allow animation-name property to be used to select timeline
Update examples to use new syntax

Use shorted names for properties:
 startScrollOffset => start
 endScrollOffset   => end
 scrollSource      => source

Minor changes to avoid bikeshed WARNING:
 - disambiguate reference to rAF
 - Reference layout cycle
@majido majido force-pushed the scroll-timeline-css branch from cb212ee to c3c59bb Compare March 26, 2020 15:05
@majido majido removed the request for review from graouts March 26, 2020 15:06
@majido majido merged commit 153f7df into w3c:master Apr 3, 2020
JTensai pushed a commit to JTensai/csswg-drafts that referenced this pull request May 13, 2020
…3c#4338, w3c#4336) (w3c#4751)

## Introduce @timeline at-rule

Allow animation-name property to be used to select timeline
Update examples to use new syntax

## Use shorted names for properties:
 startScrollOffset => start
 endScrollOffset   => end
 scrollSource      => source

## Minor changes to avoid bikeshed WARNING:
 - disambiguate reference to rAF
 - Reference layout cycle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants