8个 CSS 面板

491 阅读1分钟
原文链接: freefrontend.com

8 CSS Panels

Collection of hand-picked free HTML and CSS panel code examples.

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: -

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: -