Collection of hand-picked free HTML and CSS panel code examples from CodePen, GitHub, and other resources. Update of February 2021 collection. Four new items.

Author

  • Nader Shbib

Made with

  • HTML / CSS

About a code

Tekken Characters Cards

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: -

Author

  • Temani Afif

Made with

  • HTML / CSS

About a code

Rounded Edges Sliding Panels

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: -

Author

  • Temani Afif

Made with

  • HTML / CSS

About a code

Zig-Zag Sliding Panels (CSS Grid)

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Author

  • Sicontis

Made with

  • HTML / CSS / JS

About a code

Reflection

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: gsap.js

Demo image: Higher Contrast Panels On Patterned Backgrounds

Author

  • Paul Hebert

Made with

  • HTML / CSS

About a code

Higher Contrast Panels On Patterned Backgrounds

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Author

  • Swarup Kumar Kuila

Made with

  • HTML / CSS

About a code

Panel Animation

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: bootstrap.css, font-awesome.css

Author

  • @keyframers

Made with

  • HTML / CSS (SCSS)

About a code

Budging Bars

CSS-only line bar navigation.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Author

  • James

Made with

  • HTML / CSS

About the code

Expanding Sections

Expanding sections on hover.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Author

  • MARK

Made with

  • HTML (Pug) / CSS (SCSS)

About the code

Expanding Panels

Responsive flexbox expanding panels.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Demo image: Panel Switch Interaction Panel Switch Interaction - GIF Demo

Author

  • Susan Lee

Made with

  • HTML / CSS (SCSS) / JavaScript (Babel)

About the code

Panel Switch Interaction

Panel switch interaction with flexbox and JS.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Dependencies: -

Demo image: Full-Width Panel Expansion

Author

  • Shaw

Made with

  • HTML / CSS (Less)

About the code

Full-Width Panel Expansion

A CSS only expanding panel gallery with CSS vars to progressively enhance with animation.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Dependencies: -

Demo image: Flex Panels Flex Panels - GIF Demo

Author

  • Adriana Hasbun

Made with

  • HTML / CSS / JavaScript

About the code

Flex Panels

This boxes resize when clicked. Try to click more than one and see what happens.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Dependencies: -

Author

  • XiChen

Made with

  • HTML (Pug) / CSS (Sass)

About the code

Pure CSS Hover

Pure CSS hover panels.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Demo image: Multiple Sliding Panels

Author

  • Shaw

Made with

  • HTML / CSS (Less)

About the code

Multiple Sliding Panels

Sliding panels around to give greater emphasis to the active panel. Uses only CSS :hover states with transform/opacity transitions for maximum performance.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Dependencies: -

Demo image: CSS-only Sliding Panels Using Transforms CSS-only Sliding Panels Using Transforms - GIF Demo

Author

  • Shaw

Made with

  • HTML / CSS (Less)

About the code

CSS-only Sliding Panels Using Transforms

Sliding panels around to give greater emphasis to the active panel. Uses only CSS :hover states with transform/opacity transitions for maximum performance. Responsively switches to a stacked layout on smaller screens, or by using the .panels--stacked class.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Dependencies: -

Demo image: Skewed Flexbox Panels

Author

  • Ryan Mulligan

Made with

  • HTML (Pug) / CSS (SCSS)

About the code

Skewed Flexbox Panels

Experimenting with skew transforms applied to a series of flexbox panels. Switches the flex-direction to columns for smaller screen sizes.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Dependencies: -

Demo image: Pure CSS Panels Pure CSS Panels - GIF Demo

Author

  • Mattia Astorino

Made with

  • HTML / CSS (Less)

About the code

Pure CSS Panels

This is an example of onepage panels navigation made with only CSS.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Dependencies: -

Demo image: Dual Sliding Panels Dual Sliding Panels - GIF Demo

Author

  • Ettrics

Made with

  • HTML / CSS (Stylus) / JavaScript

About the code

Dual Sliding Panels

Dual sliding panels with awesome CSS animations. Built with Stylus and vanilla JavaScript. Be sure to checkout the responsive view

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Dependencies: -