# Collecting cool CSS (and HTML) rules I find around so I can lower my websites' dependence on JavaScript
## Forms
**@starting-style** (*makes transitions between (e.g. but not only) display none/display block smooth rather than instantaneous*) https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@starting-style
**Snap control** (*define panning and scrolling by defining snap behaviour*) https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Scroll_snap
## Select
## Colour
**oklab()** (*express color in Oklab colour space*) https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/oklab
**@support** (*specify declaration based on browser support*) https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@supports
I'm starting to add some useful JS API which basically will save adding extra dependencies. Need to think if I want to keep them here and rename the board or move them somewhere else.
**Scroll-driven animations** (*define animations on a scroll-based timeline rather than default time-based*) https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Scroll-driven_animations
**contrast-color()** (*takes a color value and return a contrasting color* https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/contrast-color
**light-dark()** (*setup light and dark color scheme variants side-by-side in your CSS*) https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark
# Collecting cool CSS (and HTML) rules I find around so I can lower my websites' dependence on JavaScript
## Forms
**@starting-style** (*makes transitions between (e.g. but not only) display none/display block smooth rather than instantaneous*) https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@starting-style
**Snap control** (*define panning and scrolling by defining snap behaviour*) https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Scroll_snap
## Select
## Colour
**oklab()** (*express color in Oklab colour space*) https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/oklab
**@support** (*specify declaration based on browser support*) https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@supports
I'm starting to add some useful JS API which basically will save adding extra dependencies. Need to think if I want to keep them here and rename the board or move them somewhere else.
**Scroll-driven animations** (*define animations on a scroll-based timeline rather than default time-based*) https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Scroll-driven_animations
**contrast-color()** (*takes a color value and return a contrasting color* https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/contrast-color
**light-dark()** (*setup light and dark color scheme variants side-by-side in your CSS*) https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark