DEV Community

loading...

Discussion on: A Quick Guide to Selecting HTML Elements with CSS

Collapse
jordanirabor profile image
Jordan Irabor

This was such an interesting read!

Yesterday I had to make a pure CSS animation and these two selectors came through for me:

  1. General sibling selector (~)
  2. Adjacent sibling selector (+)

Made me realise how powerful CSS truly is and that sometimes, we don't even need JavaScript.