Using Webflow's Visibility: Hidden v Display: None

preview_player
Показать описание
Display: none is a style (under layout) which instructs the browser not to display a specific element and its children. The element is not visible, but the HTML content is still part of the page where it can be seen by custom code, and search engines.

Use it when you want to hide an element, but to still have the element content appear in the page.
- Hide elements on certain breakpoints, and show them on others.
- Hide elements like modal pop-ups, until a trigger causes them to display.
- Hide template elements that are used in code to create visible elements programmatically. Finsweet's Powerful Rich text and its "components" are an example of this.

Visibility: hidden is an element setting which suppresses an element completely from the page. The suppression happens server-side, so the element does not exist in the page's published source code at all.

- Suppress features that you're building, but that are not yet ready for the public.
- Hide "deprecated" elements completely from the page when you no longer need them, but do not yet want to delete them permanently.
- Temporarily suppress elements that you will use again later, such as alert banners, seasonal pop-ups, and special offer sections.
- Disable custom code blocks that you do not currently want to run.
Рекомендации по теме
Комментарии
Автор

I wanted to formally thank you for all the work you do. You are such an asset to the Weblfow community with your videos and all of your contributions on the forum. You carry a heavy weight and I really appreciate it. Thank you!

benjamin_davis
Автор

The way that this is the only video and tutorial on the Internet that helped me. THANK YOU!

KhaikekeKiki
Автор

So it's not the same as "visibility: hidden" in CSS, right? I find this a bit confusing. I've been looking for the CSS "visibility" property in Webflow, but it seems it's not available.

von_fuer_
Автор

I am new to Webflow and I asked myself, are elements set to display none affecting the performance of the site in a great fashion?

private_krapfen
Автор

I don't think the point of Visibility hidden is to allow you to retain access design elements without reverting to backups. That's what Components are for. Visibility hidden is for removing element from the DOM under various conditions - such as specific users or when an element in a component is required on a specific page - such as the log-in or sign-up button on a user's dashboard.

fathom