Sidebar

This page is the demo for an article I wrote comparing performance of different sidebar animations.

Links

here are the different sidebar animations I created

SVG demos

Along the way I created SVG demos to illustrate how the sidebars were different.

Initial sidebar

pagesidebarcontent
sidebar
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 160px;
page
display: flex;

Notion's sidebar

pagecontainercontentsidebar
sidebar
position: absolute;
width: 160px;
container

Linear's sidebar

pagecontentsidebarspacer
sidebar
position: fixed;
width: 160px;
spacer

Gitlab's sidebar

pagesidebarcontent
sidebar
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 160px;
content