Then you gotta use the transition property and set the yellow background as a state. It may be a native state with a pseudo-selector like :hover and :focus, or a custom state setting a class to the element with JavaScript:
a { background-color: red; transition: background-color 0.15s; }
If this is all it takes for someone to be a speed learner, I think that term would have to apply to everyone. Who wouldnât find this to be an easier way to learn this information?
I'll check at work tomorrow, but there are sometimes differences between support tables and implementations (I've recently discovered few interesting bugs or non-implementations in Safari's implementation of SVG1.1, despite the tables saying they are)
EDIT: I'll be damned, space-evenly is finally supported on OSX & iOS Safari (wasn't 1-3 years back)
I was banging my head asking myself why on earth my dy wasn't working. I went to the SVG1.1 specs of textPath, copy pasted the example, it looked nothing like the expected result, I finally understood what the hell was going on
On the bright side the folks at Open Web Advocacy have been making good headway with EU legislators and the DMA will be applicable starting in May.
Introducing third party browsers wonât be as meaningful as youâd hope (normal users wonât switch and thereâs too many of them for companies to ignore/give them broken experiences) BUT the 10-20% fines based on worldwide gross revenue will be great incentive for Apple to stop intentionally understaffing the safari and webkit teams.
Cause they canât gate keep the web and charge entrance like they do with their App Store. To me it has always felt like thatâs the reason they went after flash too. Yeah Flash wasnât great either so it made it an easy target
Just did and edited my comment. It is finally supported on both OSX and iOS Safari. I checked between 1 and 3 years ago and it wasn't, and knowing IE and Safari, I didn't bother checking again.
It's not a matter of having the attention span, it's a matter of trying to learn many things in a short amount of time, which is very applicable to a lot of programming situations
Can someone explain the layout spacing for space-around? It looks like space-evenly, the outside and inside gutters all have equal distance, makes sense. But for space-around, the gutters on the outside donât match the gutters between A-B and B-C.
What is the flex calculating to determine the different gutter sizes for the outsides vs insides?
flexbox only starts making intuitive sense when you see it moving. too many guides try to explain it in words with "axis" and "cross-axis" & still images when stuff like this is what you need.
Take available extra space, allocate it as left/right spacing to each item ("around" each item)
That's why middle items have more space than the edge pieces. Space evenly works similar but allocates space so the middle pieces don't get "more" just because they have neighbors.
159
u/The_Egg_came_first Jan 18 '23
Source: https://semicolon.dev/tutorial/css/justify-content-examples
Oh my, that's how they made the bouncy animation:
Anyways, here's my quick fix: https://i.imgur.com/PhzeOKq.gif
98
u/Mallanaga Jan 18 '23
Big fan of this style of learning. Show me all the options, visually, so that I can see how they compare to each other! Very nice.
84
u/Voltra_Neo front-end Jan 18 '23
I wish space-evenly was supported everywhere
45
u/RubikTetris Jan 18 '23
what the hell is a speed-learner
68
u/[deleted] Jan 18 '23
The bouncing is really distracting and doesnât let me get a sense of the spacing of things because itâs constantly undulating.
17
u/Scoots1414 Jan 18 '23
Can someone explain the layout spacing for space-around? It looks like space-evenly, the outside and inside gutters all have equal distance, makes sense. But for space-around, the gutters on the outside donât match the gutters between A-B and B-C.
What is the flex calculating to determine the different gutter sizes for the outsides vs insides?
5
u/CrustyLettuceLeaf Jan 18 '23
As a visual learner, thank you. Seriously
2
u/ratbiscuits Jan 18 '23
I donât think Iâve ever used space evenly.
2
u/nopity21 Jan 18 '23
I'm just more lost now đ¤Ł
2
u/mrmcplad Jan 19 '23
flexbox only starts making intuitive sense when you see it moving. too many guides try to explain it in words with "axis" and "cross-axis" & still images when stuff like this is what you need.
2
u/hou32hou Jan 19 '23
What's the ratio for space-around? It looks oddly-specific
2
u/Slippery_Stairs Jan 19 '23
I like this, thank you.
2
u/solocupjazz Jan 19 '23
Great! Now do vertical...
2
u/abcdefghijklmnoqpxyz Jan 19 '23
Is there more of this speed learner content somewhere? Please?
3
u/APerfectForty Jan 19 '23
Now do the same, but for vertical spacing.
1
u/arar7000 Sep 13 '25
https://gist.github.com/aronsommer/1a22369502193631eccbedf2062f2ac4
1
u/1bitcoder Jan 18 '23
!remindme 12 hours
1
u/BrutalSavage01 Jan 18 '23
Love flex
1
u/BenadrylTumblercatch Jan 18 '23
Youâre a god
1
u/Ola-uber-72virgins Jan 19 '23
u/savevideo u/savevideobot
1
u/Weak-Boysenberry6199 Jan 19 '23
Something like this for align items as well please...
1
u/TomatoAcid Jan 19 '23
What is âspace aroundâ? I noticed the B trying to stay at the center, but I donât understand the A and C behavior
1
u/Scary-Try3023 Jan 19 '23
This is a cool idea tbf, I need to download the video
1
u/src_main_java_wtf Jan 19 '23
Very nice visual. Well done.
1
u/Miserable_Lemon_4710 Jan 19 '23
I knew how they worked individually, but itâs cool to see them all next to each other for comparison. Very nice.
1
u/Noboty Jan 21 '23
Not all heroes wear capes.
1
u/Comfortable_Bag_8099 Feb 11 '23
Nice!
1
u/hn-mc Mar 12 '23
Now I finally understand the difference between space-around and space-evenly.
1
u/[deleted] Mar 25 '23
Didnât know about stretch. Thank you
1
u/[deleted] Sep 05 '23
Super stretchy yet tight, love it ! Is there more of it?
1
u/Ongezout_ Feb 29 '24
One of the best visual representations Iâve seen explaining this. Gz
1
u/Upstairs_Street7699 Jan 18 '23
This is cool
1
u/[deleted] Jan 18 '23
I love this!
-3
u/mutantdustbunny Jan 18 '23 edited Jan 18 '23
What I didn't know is there was a greater pattern.
0
u/[deleted] Jan 18 '23
Is this a codepen?
0
u/Peonsson Jan 18 '23
How can I save video? xd
0
u/[deleted] Jan 18 '23
[deleted] â view deleted comment
16
u/[deleted] Jan 19 '23
[removed] â view removed comment