![AnkitaB on Twitter: "Learnt something new today馃ぉ If you apply "visibility: hidden" to parent element, and "visibility: visible" to child element it will hide the parent element but shows the child element. AnkitaB on Twitter: "Learnt something new today馃ぉ If you apply "visibility: hidden" to parent element, and "visibility: visible" to child element it will hide the parent element but shows the child element.](https://pbs.twimg.com/media/FBbl2P1VQAEDf-s.jpg)
AnkitaB on Twitter: "Learnt something new today馃ぉ If you apply "visibility: hidden" to parent element, and "visibility: visible" to child element it will hide the parent element but shows the child element.
![Span and div jQuery HTML Stack Overflow Web page, visibility, text, computer, display Advertising png | PNGWing Span and div jQuery HTML Stack Overflow Web page, visibility, text, computer, display Advertising png | PNGWing](https://w7.pngwing.com/pngs/813/588/png-transparent-span-and-div-jquery-html-stack-overflow-web-page-visibility-text-computer-display-advertising-thumbnail.png)
Span and div jQuery HTML Stack Overflow Web page, visibility, text, computer, display Advertising png | PNGWing
![javascript - how can i set divs to "visibility:hidden" if they are outside of viewport - Stack Overflow javascript - how can i set divs to "visibility:hidden" if they are outside of viewport - Stack Overflow](https://i.stack.imgur.com/Ls1Lr.png)