Alessio Carone (@Littlemad) header
Alessio Carone (@Littlemad) profile picture

I'm a great italian Web/Ux Designer, and yes, really modest about it ;D - Living, working and having fun in Barcelona. I make people happy and tiramisu!

Barcelona
Joined November 2006
Photo by Alessio Carone (@Littlemad)Photo by Alessio Carone (@Littlemad)Photo by Alessio Carone (@Littlemad)Photo by Alessio Carone (@Littlemad)Photo by Alessio Carone (@Littlemad)Photo by Alessio Carone (@Littlemad)Photo by Alessio Carone (@Littlemad)Photo by Alessio Carone (@Littlemad)Photo by Alessio Carone (@Littlemad)Photo by Alessio Carone (@Littlemad)
Alessio Carone retweeted
CSS Tip! 🤯 You can create a CSS-only version of this balance slider using a scroll animation on the underlying input[type=range] 🚀 ::-webkit-slider-thumb { view-timeline: --thumb inline; } Scroll animation driven by the slider thumb animates a number between the "min" and "max" of the range 😅 @​property --value { inherits: true; initial-value: 0; syntax: '<integer>'; } @​keyframes sync { to { --value: 100; }} Tie that up to the contain animation-range ⚡️ .control { animation: sync both linear reverse; animation-timeline: --thumb; animation-range: contain; } Hoist the view timeline so all the parts of the control can use it! .control { timeline-scope: --thumb; } Use that value in a counter which is used for the labels. Create a low and a high for each side 😇 .control__label { counter-reset: low var(--value) high calc(100 - var(--value)); } .control__label::before { content: "COFFEE " counter(low) "%"; } .control__label::after { content: counter(high) "% MILK"; } That's the magic of updating the label values ✨ For the big track, it's a fake track. You can make use of the same --value property and do some calc() to work out the width of each part. <div class="control__track"> <div class="control__indicator"></div> </div> .control__track::before { width: calc(var(--value) * 1% - 0.5rem); background: var(--coffee); border-radius: 4px; transition: width 0.1s; } The width leaves a little gap for the indicator piece 🤙 The color calculation for --coffee isn't too wild but again you can use the same --value .control__track { --coffee: hsl(24 74% calc( 24% + (30% * ((100 - var(--value, 0)) / 100)) / 1 ) / 0.4); } Now for the last piece. Making the track change height. You could set up another custom property and animate its value using the --thumb timeline too 🔥 @​property --shift { initial-value: 0; inherits: true; syntax: '<integer>'; } @​keyframes shift { 0%, 31%, 61%, 100% { --shift: 0; } 32%, 60% { --shift: 1; } } Then use that --shift to update the translation of the label and height of the track 🤓 .label { transform: translateY(calc(var(--shift) * 50%)); transition: transform var(--speed) var(--timing); } Cool part here is that you can use the control to work out the @​keyframes percentages 😅 Oh. And the timing for that little bounce? Use the linear() function 😎 :root { --timing: linear( 0, 0.5007 7.21%, 0.7803 12.29%, 0.8883 14.93%, 0.9724 17.63%, 1.0343 20.44%, 1.0754 23.44%, 1.0898 25.22%, 1.0984 27.11%, 1.1014 29.15%, 1.0989 31.4%, 1.0854 35.23%, 1.0196 48.86%, 1.0043 54.06%, 0.9956 59.6%, 0.9925 68.11%, 1 ); } Should probably do a video on this one. Lots of little custom property tricks for sure! 💯 It's not too far off the range slider with the tooltip that came up previously As always, any questions, let me know! Also, this one only works in Chrome currently ✅🥲 This one's a bit rocket science ha 🚀 @CodePen link below! 👇
Prototyped a balance slider today ✨ How do you like your coffee?
36
281
18
2,899
378,143
⛺🪵🔥 Free Storytelling Masterclass (+ PDFs) A comprehensive guide with 9 modules on storytelling, PDF worksheets, 1-pager sketchnotes, free lectures, video courses and a videos from influential female storytellers. By Jeremy Connell-Waite. 👏🏽 betterstories.org #ux
3
53
276
17,515
1,299
36,025
2,071
352,732
39,272,346
👉🏼 „‘Can I Use…’, but for ARIA! - Bocoup” 🔗bocoup.com/blog/can-i-use-bu… 💬 When developing and creating accessible web experiences, knowing how different screen readers will interpret your web components is tricky.
2
1
8
2,107
Alessio Carone retweeted
Yes.
80
5,241
794
22,801
1,630,367
Alessio Carone retweeted
So obsessed with this. It's WILDY important to look at the experience end-to-end and all the contributing factors that are a part of a customer's journey.
We created a blueprint of the Airbnb experience and used it to improve our service end-to-end
2
6
128
20,363
Text-wrap: balance is coming and is available in Edge/Chrome Canary right now. It's a CSS feature that balances words in a headline rather than just wrapping long lines.
1
7
1
34
8,303
Alessio Carone retweeted
A good use case for Container Queries in CSS: A Weekly Events Calendar Pen: codepen.io/chriscoyier/pen/j… 5 minutes on YouTube explaining: youtube.com/watch?v=3R1vOG1p…
14
186
11
1,338
205,280
Massive Update for Auto-GPT: Code Execution! 🤖💻 Auto-GPT is now able to write it's own code using #gpt4 and execute python scripts! This allows it to recursively debug, develop and self-improve... 🤯 👇
238
1,620
636
9,171
4,223,532
The Washington Post Design System (build.washingtonpost.com), a comprehensive design system with a playroom for developers, live previews, do’s and don’ts, guides for internal processes, videos and a dedicated accessibility section. 👏🏼👏🏽👏🏾 #ux #design #designsystems
1
29
2
131
9,291
How photography changed art: (will AI do the same to writing?)
220
2,945
398
23,030
4,551,153
Alessio Carone retweeted
Replying to @elonmusk
Elon Musk paid $44 billion for Twitter just to do this
33
97
14
508
367,542
Alessio Carone retweeted
Also made a scroll-driven angled slide for the same #CodePenChallenge - see it on @CodePen codepen.io/thebabydino/full/… Uses pure #CSS scroll-driven animations to make angled content section also slide right on vertical scroll. Uses CSS shapes to make text flow along angled edges.
3
7
2
23
3,527
Alessio Carone retweeted
Gn🖤
23
23
2
169
6,998
Alessio Carone retweeted
Fantastic Flickr album of vintage Olivetti designs. flickr.com/photos/19855494@N…
1
35
2
273
33,460
Alessio Carone retweeted
Throwback to #sketchnotes from a talk about AI in design from 2017. What do you think about AI generated art and design? Are you excited? Are you scared? Is AI a threat or an opportunity for designers?
4
1
15
1,606
Alessio Carone retweeted
Future CSS Tip! 🔮 Use Anchor Positioning to anchor elements to each other ⚓️ (No wrappers!) .anchor { anchor-name: --anc; } .anchored { top: anchor(--anc bottom); } Create adaptive layouts with CSS alone 😮 Let the browser work it out for you! ⭐️ @CodePen link below! 👇
18
179
8
1,373
155,087
“A ship in the harbor is safe, but that’s not what ships are built for.” #shipswhistlefont
2
9
1,781
Being fast is more important than ever. But despite being the easiest metric to monitor, debug, and optimise, LCP is still the one that most websites struggle with. Get ready to ask for a pay rise, after @csswizardry's #perfnow talk: youtube.com/watch?v=JhTR2fz6…
14
3
55
23,586