DEV Community

Frederic R.
Frederic R.

Posted on

Minimal Carousel with scroll snap, mobile & mouse friendly

A scrollable carousel in few lines of JS and CSS. You can scroll with your fingers or click and drag. The div snaps to the center Does not use any library like slick, owl carousel, tiny-slider, flickity, ...

Top comments (2)

Collapse
 
mleu_coder profile image
Matthias Leu

Is it me or is this practically unusable? The look and feel is pretty bad, the scroll seems to stick on clicks and makes the carousel uncontrollable.

Collapse
 
jhvanderschee profile image
Joost van der Schee

Love it! I pinned it on Codepen! Here is my carousel: codepen.io/joosts/pen/dyKRQZv.