08. The Layers Panel
Now that you understand the anatomy of a project and all the different types of components that are available to us, let’s take a look at how we structure these components within the layers panel.
The layers panel is the default view of the content panel located on the left-hand side of the design editor. This is accessed via the first tab in the content panel.
Pages
Layer Categories
Sections
Elements and Frames
Interactions
Hiding & Locking Layers
Pages
The first area, at the top of this panel is where you can manage the pages of your project. Here you can switch between pages, create new pages and set their page status.
You can also access the settings of a page when no component on the canvas is selected. This will appear on the right-hand side where the style panel is usually located. This is where you go to manage your pages’ SEO settings.
Layer Categories
Underneath pages you will find the layers of the currently selected page. Within the layers section, you'll see different types of categories serving distinct purposes on your page. The different categories we have are:
Pinned Layers Category
Pinned layers allow you set elements on the canvas to remain in the same spot relative to the y-axis of the viewport while scrolling the page. Note that sections can not be pinned, only elements and is the only example where an element or frame does not need to be contained in a section. To do this you can simply click and drag the desired element into the pinned area within the layers panel. Alternatively, you can select your element, navigate to the style panel on the right-hand side, and from the Scroll area, you can select Pinned position from the list. Once you do this, you’ll see that the element will automatically move to the Pinned category. Bear in mind, that once an element is pinned, you can select which pages of your project this pinned element will be applied to. Any changes to the pinned component will apply universally across all of the selected pages within this project.
Header and Footer Categories
When a section is positioned in the Header category, the layer will be ordered at the top of the page before the Main layers. If your section is in the Footer category, it will be ordered at the bottom of the page after the Main layers. You can simply click and drag your desired section into the header or footer category, or alternatively, you can select a section, and from the style panel, from the placement option at the top of the panel, you can choose whether this section will sit in the header, footer or main category. And just like pinned elements, you can choose which pages of your project your header and footer are applied to.
Main layers category
Layers in this category work in the default behavior and will remain in a static position on the canvas and scroll along the page. This is the category where you’ll be doing the majority of your design work in the design editor.
Sections
With the categories of your page in mind, the next level you’ll see is the content of your page broken down into sections. Sections will always sit on top of one another after following the hierarchy set for header, main and footer categories. We can easily rearrange our sections by clicking-and-dragging them from the layers panel.
You can use this to easily rearrange the content of your page. There’s a variety of different types of sections which you can find within the add menu, including video, scrollytelling or parallax image. These sections will sit on top of one another within your page structure. A section can’t be placed into another section.
Elements and Frames
Inside of your section is where your elements and frames will live. Frames can also house other elements inside of them and will show an indent within the layers panel, allowing you to open them out and view the contents inside.
Elements and frames within your sections will be managed on a layer basis, so anything at the top of the list will be in the front and components at the bottom of the list will be in the back.
Interactions
Interactions can be applied to any type of component, be it a section, element or frame. Interactions are shown to the right of the layer when they are applied, so you can easily see at a glance what components have interactions applied to them. You can also simply click on the interaction icon to open the settings of that respective interaction.
Hiding & Locking layers
You can also hide and lock any component within the layer’s panel. To do this simply hover the mouse over a layer within the layers panel. From here, you will see both the lock symbol and the eye symbol. Selecting the lock will lock the layer and means you cannot make any changes to that component whilst it’s in a locked state. To show or hide a component you can simply select the eye symbol, this also works on a breakpoint inheritance level so if you hide from your main breakpoint it will be inherited down to your other breakpoints. You can also choose to hide on one device and show on another if required.
→ Next up, let’s explore: Breakpoints vs Viewports