Skip to content

Instantly share code, notes, and snippets.

@richgcook
Last active September 22, 2023 15:35
Show Gist options
  • Save richgcook/e64270a8e7177903d93aba6d02bcc4cf to your computer and use it in GitHub Desktop.
Save richgcook/e64270a8e7177903d93aba6d02bcc4cf to your computer and use it in GitHub Desktop.
CSS/JS to learn/try/use
:has
:nth-child(even of .noted)
:empty
rotate and translate rather than transform: translate etc
@container (min-width: 700px) {}
https://scroll-driven-animations.style/
view-timeline-name: --revealing-image;
view-timeline-axis: block;
animation: linear reveal both;
animation-timeline: --revealing-image;
animation-range: entry 25% cover 50%;
document.startViewTransition(() => {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment