How to toggle Flex Container visibility

I made this procedure twice yesterday, it didn’t work for me. I tried to make it for a flex container in order to make an offcanvas section. Does it work only for some specific type of objects like paragraphs or other stuff that has content inside ?

Community Page
Last updated: