-
Couldn't load subscription status.
- Fork 0
wip: css driven animation #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
lochie
commented
Oct 26, 2025
- and locale support
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| } | ||
| } | ||
| `; | ||
| document.head.appendChild(style); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to make append at global level rather than per-instance
| transition-delay: var(--delay, 0ms); | ||
| transition-timing-function: inherit; | ||
| transition-property: opacity, transform; | ||
| will-change: opacity, transform; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still getting pixel shifting. need to review
|
|
||
| child.style.setProperty( | ||
| "--invert", | ||
| `translate(${deltaX}px, ${deltaY}px) scale(${isNew ? 0.8 : 1})`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test translate3d for better performance
| children.forEach((child) => { | ||
| // temporarily remove | ||
| const parent = child.parentElement!; | ||
| parent.removeChild(child); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix: missing exit animation on removed nodes