• #dev 2022-02-21
  • Prev
    Next
  • #indieweb
  • #dev
  • #wordpress
  • #meta
  • #stream
  • #microformats
  • #known
  • #events
#dev ≡
  • ←
  • →
2022-02-21 UTC
# 14:39
Murray[d]
Sure, that'd definitely work. Have a container with relative positioning, absolutely position the two child elements to the top-left and give them the same width and height and use z-index to hide one behind the other. Then you can either change the z-index value or even just set the opacity to 0 or display: none when an action is taken. `:hover` would be natively supported with just CSS (but not great on mobile) or add/remove a class with j