I got a 505 points knowledge score on this year’s #StateOfCSS survey! I have used 41 features, and knew 19 more, placing me in the top 100% of all respondents. Can you beat my score? https://t.co/OlVqKzk0hC
@bramus Totally! Half of my codepens list looks like ‘[Bug - Webkit] Something something something’
I put them in different collections but the public profile still looks like a mess
Was looking for something on https://t.co/h3Pj8d8Fiw, and found out that this month 15 years ago my most successful open source contribution to @videolan was published - https://t.co/JyBbC6mO43
Future CSS Tip! ⚡️
You can use scroll-driven animations to drive sprite animations 🎞️
No JavaScript, off the main thread 🔥
img {
animation: play both steps(var(--frames)) var(--runs);
animation-timeline: scroll();
}
@ keyframes play {
to {
object-position: 100% 0;
}
}
The trick is animating a "film strip" with object-position and the steps animation-timing function 🎬
Check out this sprite animation set to a higher play count and how the stepped easing makes a difference to the sprite 🤙
This opens up a bunch of possibilities where the image is animated off the main thread and you can bring in complex things via sprite 👀
Showing the sprite is intended to help you understand how object-position is being animated 🤙
Become the director! 😅
@CodePen link below! 👇
@LeaVerou It totally sounds like an opt-in feature.
Btw - the same behavior can be achieved if checkboxes had a multiselect=false feature.
If you imagine the venn diagram of radios and checkboxes, this falls exactly in the middle
found a sneaky little bug in clip-path: inset() on Safari.
There are "magic" sizes of element size, inset() size and border radius size where the border radius does not render...
https://t.co/mlLQ47vAbt