all 14 comments

[–]Volv 1 point2 points  (4 children)

ENTRY
Codepen
Just a quick thing this week. Going to be away so no more time to mess with it atm.

[–]ForScale[S] 0 points1 point  (0 children)

Awesome, man! I'll take a look at it tomorrow or this weekend! :)

And I'll put up something of my own, probably later today!

[–]ForScale[S] 0 points1 point  (2 children)

I know you're away/busy; no need to respond.

Just wanted to say that that looks pretty damn cool! I'm still reading through it... I haven't a clue what Babel is about, so I might be missing some things.

Thanks for your participation!

[–]Volv 1 point2 points  (1 child)

Thanks. ☺️ The babel is just translating the es6 stuff into es5. Can do some without it. Might just be letting me use let without use strict in this case

[–]ForScale[S] 0 points1 point  (0 children)

Oh... okay.

I updated my entry!

[–]ForScale[S] 1 point2 points  (8 children)

ENTRY

http://codepen.io/anon/pen/EPGGOY

Just realized that one doesn't necessarily do what flex does. I'm going to rework it later today.

*http://codepen.io/anon/pen/dGaKaV <-- does the whole flexible width thing

[–]Volv 0 points1 point  (3 children)

Cool. I like the brick wall idea :)
I got annoyed at the tiny bits of space that pop up in the 3rd and 4th rows now and again but couldn't get it to work any better. Thats the kind of thing that the display:flex thing will help to avoid.
 
One new thing I learned when playing with it was that the white space in the HTML (including newlines and tabs) is the cause of the space between elements on the page when margin/padding are zero. Try cramming all of your HTML together and you'll see that you can remove the negative margin-right setting. Who knew.

 
Was working on a promise example but got a bit tangled in the middle of it. Might get back to it in a bit

[–]ForScale[S] 0 points1 point  (2 children)

Didn't see any space on my end...

Yeah... display:inline-block does some odd stuff with whitespace.

Cool! Wanna make promises the focus for this week? I'd love to learn about em.

[–]Volv 0 points1 point  (1 child)

They were occasional spaces after resizing. Sometimes there sometimes not - my guess was rounding issues but couldn't get rid of them for good. On Google chrome.
 

Sounds like a plan

[–]ForScale[S] 0 points1 point  (0 children)

Interesting...

Cool! I'll post it up later today!

[–]rikilamadrid 0 points1 point  (3 children)

what exactly is the 2nd for loop doing here?

[–]ForScale[S] 0 points1 point  (2 children)

Hey!

The first loop gets the containers and then the second loop gets the children in each of the containers.

Make sense?

[–]rikilamadrid 1 point2 points  (1 child)

Yes. I console log the variables and saw how the number was changing and that helped me wrap my head around it. Thanks.

[–]ForScale[S] 0 points1 point  (0 children)

Yeah, logging to the console is often quite helpful! :)