flexboxfroggie.com game

Been meaning to play flexboxfroggy.com; what a great idea: make learning a game! love it. I like that they use wording like "levels" to encourage you to keep going. The graphics are fun, like a kids game, even have pac-man like circles which continue the gaming theme. Bold fun colors. Helpful content and hints. Great for kids of all ages.


Flexbox has been a game changer for css layouts and we all use extensively. It's very powerful but also lots of options. The go to guide is from css tricks, but it ain't as fun as freddy

my notes

  • justify-content: main axis (i.e. horizonal axis unless reversed)
  • align-items: cross axis (i.e. vertical axis  unless reversed), how items as a whole are aligned within the container
  • when you set direction reversed for row/column then start and end are also reversed and so is justify-content and align-items
  • order: change order of items with positive or negative number (default order is 0 for all)
  • align-self: targets a specific item (can override default for a specific item)
  • flex-wrap: by default tries to fit items on same line, can change to wrap
  • align-content: defines how multiple lines are spaced apart; all at top/bottom/centered/spread out etc. Has no effect if only 1 line.
p.s. my solution to level 24:

flex-direction: column-reverse;
flex-wrap: wrap-reverse;
justify-content: center;
align-content: space-between;


They also have a course for css grid: grid-garden and a bunch of other games. Very cool






Comments

Popular posts from this blog

deep dive into Material UI TextField built by mui

angular js protractor e2e cheatsheet

react-router v6.4+ loaders, actions, forms and more