Skip navigation
Built a quick little resizable elastic min/max width sidebar using Motion primitives.
0:00 / 0:20

Built a quick little resizable elastic min/max width sidebar using Motion primitives.

Derek Briggs

@PixelJanitor11K followers

Visit on X
709 likesDownloadOriginal post

35,086 views

Built a quick little resizable elastic min/max width sidebar using Motion primitives.

33 Comments

Comments from the original post on X (Twitter)

  • Mery's profile picture

    @merycodes

    @motiondotdev You and the attention to details 🔥

    4 likes

  • Derek Briggs's profile picture

    @PixelJanitor

    You don' kno' me!

    1 like

  • Joe Lee's profile picture

    @_joerl

    @motiondotdev super nice, love that the toggle animation is simpler. been playing with elastics this week too

    2 likes

  • nanda's profile picture

    @nandafyi

    @motiondotdev clean af

    2 likes

  • Derek Briggs's profile picture

    @PixelJanitor

    @motiondotdev

  • Damian Chmiel's profile picture

    @chmielwork

    @motiondotdev Add a double click to get back to the default width

    1 like

  • Derek Briggs's profile picture

    @PixelJanitor

    @motiondotdev May have to try that, but these types of things feel like the "half open macbook" theory where users are forced to set it to where they want it to be, not where it was put for them.

    1 like

  • Damian Chmiel's profile picture

    @chmielwork

    @motiondotdev yeah, that’s a fair point. but if i resize the sidebar to a specific width, then later make it narrower or wider, it would be nice if the app remembered my previous width. that way, a double-click could restore it to the exact width i had set before

  • Derek Briggs's profile picture

    @PixelJanitor

    @motiondotdev Follow up: Added a double click that just always returns it to the default width 👍🏻

    2 likes

  • Damian Chmiel's profile picture

    @chmielwork

    @motiondotdev You the champ!

  • Deckard 💻's profile picture

    @DeckardBuilds

    @motiondotdev Elastic UI is always a win for me

    1 like

  • Ankur's profile picture

    @ankur5ahu

    @motiondotdev rubber banding ftw

    1 like

  • Derek Briggs's profile picture

    @PixelJanitor

    @motiondotdev 🙌

    1 like

  • Alvish 🧙‍♂️'s profile picture

    @alvishbaldha

    @motiondotdev 😮‍💨

    1 like

  • Jacob Jolibois 🇺🇸's profile picture

    @jacobjolibois

    @motiondotdev Super nice 👌🏼 I need to bring that rubber banding into our sidebar component.

    1 like

  • Derek Briggs's profile picture

    @PixelJanitor

    @motiondotdev Thanks!

  • Will King's profile picture

    @willking

    @motiondotdev Love built in friction

    1 like

  • Chris Frantz's profile picture

    @frantzfries

    @motiondotdev great interactions

    1 like

  • Julian Bissekkou 💙's profile picture

    @JulianLenz_

    @motiondotdev can you share how its done?

  • Marco Fortes's profile picture

    @marcopfortes

    @motiondotdev Now add something like this