Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[scroll-animations] Add css syntax for element-based offset (#5264)
Add css syntax to for element-based offsets. Fixes #4337. The element-based syntax is simply applied when the value starts with `selector(#id)` with the following characteristics: - `selector( <<id-selector>> )` is required and is expected to be the first value. - both edge and threshold are optional can can be provided in any order. I followed some of the ideas mentioned by @tabatkins in #4348 to to get to a more ergonomic css function syntax. In particular there is no comma and the optional params can be in any order. Note that unlike #4348 we are not adding a function syntax.
- Loading branch information
Showing
1 changed file
with
62 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters