AlessandroMagnaterra retweeted
CSS Tip! 📜
You can create scroll-driven micro-interactions with animation-timeline and custom properties 🔥
.search {
animation: shrink;
animation-timeline: scroll();
animation-range: 0 calc(var(--header-height) * 0.5);
}
@keyframes shrink {
to { width: calc(100% - var(--button-size); }
}
The --header-height is being used to dictate the container height for the header. You can use that for the animation-range used across different scroll animations 🤙
For another example, you can animate the box-shadow reveal on the header once the search has stuck 🍡
header {
animation: shadow;
animation-timeline: scroll();
animation-range:
var(--header-height)
calc(var(--header-height) * 1.5);
}
@keyframes shadow {
to { box-shadow: 0 5px 10px hsl(0 0% 0%); }
}
Then you have the little extras! 🧸🎈
Everything powered by the scroll() animation-timeline which hooks into the page scroll. And then using the --header-height in the different animation-range ✨
Give it a try! ⭐️
@CodePen link below! 👇
AlessandroMagnaterra retweeted
Software engineering is about tradeoffs.
Let's talk about how data fetching happens in different meta-frameworks and what the trade-offs of those approaches are.
AlessandroMagnaterra retweeted
This is unacceptable, should not be possible
Made possible by @_nonfigurativ_
AlessandroMagnaterra retweeted
the mission continues
We remain committed to our partnership with OpenAI and have confidence in our product roadmap, our ability to continue to innovate with everything we announced at Microsoft Ignite, and in continuing to support our customers and partners. We look forward to getting to know Emmett Shear and OAI's new leadership team and working with them. And we’re extremely excited to share the news that Sam Altman and Greg Brockman, together with colleagues, will be joining Microsoft to lead a new advanced AI research team. We look forward to moving quickly to provide them with the resources needed for their success.
AlessandroMagnaterra retweeted
New Browser Viewport Units in CSS ✨
Easily get the correct viewport size with svh, lvh and dvh (instead of vh) especially if the browser UI is resizing for example 👇
📄 Docs (incl. other units) developer.mozilla.org/en-US/…
✅ Browser Support caniuse.com/viewport-unit-va…
🔗 Article by @shadeed9 ishadeed.com/article/new-vie…
🔗 Summary by @chriscoyier css-tricks.com/the-large-sma…
Nowadays it's widely supported, but you can still fallback to vh for example which was introduced in 2015 ☝️ so just set: min-height: 100vh; min-height: 100dvh;
AlessandroMagnaterra retweeted
Kid with incredible acting skills shows off his epic Halloween costume
AlessandroMagnaterra retweeted
Ukiyo Surfer 🏄🏻♂️
Made possible by AI
Can’t stop watching
teapawt.org/naminori_bum/status/17…
AlessandroMagnaterra retweeted
Midjourney vs. Dalle-3 vs. Adobe Firefly
Same prompt for all.
10 spicy examples.
1.
AlessandroMagnaterra retweeted
This is inside the Sphere in Las Vegas.
This may be the most insane concert venue ever built
AlessandroMagnaterra retweeted
What did I just watch?
Star Wars x AI
Mind blown, creative humans using AI to dream up a very different Star Wars.
By @douggypledger & @osymyso
AlessandroMagnaterra retweeted
Spaventoso incidente delle Frecce Tricolori all'Aero Club di Torino durante l'esibizione per i cento anni dell'Aeronautica. Sembra che i piloti siano illesi.
teapawt.org/ON8CB/status/170306696…
AlessandroMagnaterra retweeted
Non era facile passare dal recitare nella pubblicità dell'Eurospin a un ruolo di spicco in #Oppenheimer; molti ne sarebbero stati sopraffatti, ma lui no.
AlessandroMagnaterra retweeted
What if you could see people's time zones visually when scheduling meetings? @Cron
AlessandroMagnaterra retweeted
Dopo Warriors-Kings è stato chiesto a Steve Kerr un pensiero sulle parole di Giannis. Questa la sua risposta.
#otnba
AlessandroMagnaterra retweeted
Telecamera tattica! Brighton. Chiudete Coverciano e fate biglietto per Londra… @OfficialBHAFC @premierleague #dezerbi #sportitalia @tvdellosport
AlessandroMagnaterra retweeted
In the past year, almost every legacy international news outlet said that because of our “#Bitcoin bet”, El Salvador was going to default on its debt by January 2023 (since we had an 800 million dollar bond maturing today).
Literally, hundreds of articles english.elpais.com/economy-a…
AlessandroMagnaterra retweeted
Lionel Messi and Cristiano Ronaldo, 2022 / For @LouisVuitton
























