abouolia / sticky-sidebar

😎 Pure JavaScript tool for making smart and high performance sticky sidebar.
https://abouolia.github.io/sticky-sidebar/
MIT License
2.23k stars 487 forks source link

Pure css alternative of js sticky sidebar #142

Open gustawdaniel opened 1 year ago

gustawdaniel commented 1 year ago

https://stackoverflow.com/a/71129668/6398044

<div class="flex">
    <aside class="h-screen sticky top-0">
        // Fixed Sidebar
    </aside>

    <main>
        // Content
    </main>
</div>

What do you think about mentioning about it in README?

patchthecode commented 1 year ago

This doesnt handle all the cases. In fact, i came looking for this library because that method above does not work for me.