35+ CSS Cubes - Free Code + Demos

Collection of 35+ CSS Cubes. All items are 100% free and open-source.

1. Zero Element: Cube

CSS Cubes - Zero Element: Cube
Author: Keith Clark (keithclark)
Created on: September 30, 2016
Made with: SCSS

2. CSS-Only Cube Pack

CSS Cubes - CSS-Only Cube Pack
Based on an animation by Joseph Ryba: https://www.instagram.com/p/BaFwMjpgu2a/?taken-by=joe_ryba Works best on Chrome.
Author: David Khourshid (davidkpiano)
Created on: February 3, 2018
Made with: HTML, SCSS, JS

3. Levitating Webpack 3 Logo - CSS

CSS Cubes - Levitating webpack 3 logo - CSS
Webpack's 3 awesome logo animation.. with a bit of a shadow and a levitating effect added.
Author: Emmanuel Lainas (RedGlove)
Created on: July 4, 2017
Made with: HTML, SCSS
Tags: webpack, css, animation, 3d-css

4. Spinning 3d Cube - Pure CSS

CSS Cubes - Spinning 3d Cube - Pure CSS
This is a pure CSS recreation of @beesandbombs gif https://twitter.com/beesandbombs/status/872082549610348544 of a spinning 3d cube with changing faces
Author: Ben Sheppard (flatking)
Created on: June 6, 2017
Made with: Haml, Less, JS
CSS Pre-processor: Less
JS Pre-processor: None
HTML Pre-processor: Haml
Tags: css, animation, 3d-css, cube, rotation

5. Pure CSS 3D Cube Assembly Animation (Chrome)

CSS Cubes - Pure CSS 3D Cube Assembly Animation (Chrome)
Live coded in 30 min on the 13th of December 2016. Tested & works in Chrome. Firefox has 3D order issues. Edge has problems when using both 3D transforms & filters + 3D transform animation issues. Inspired by this Shutterstock video.
Author: Ana Tudor (thebabydino)
Created on: December 13, 2016
Made with: Pug, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: Babel
HTML Pre-processor: Pug
Tags: 3d, sass, transform, shutterstock, animation

6. Zero Element: Cube

CSS Cubes - Zero Element: Cube
Author: Keith Clark (keithclark)
Created on: September 30, 2016
Made with: SCSS

7. Pure CSS Shaded Cube Wheels (no Firefox)

CSS Cubes - Pure CSS Shaded Cube Wheels (no Firefox)
Author: Ana Tudor (thebabydino)
Created on: September 5, 2016
Made with: Haml, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: Babel
HTML Pre-processor: Haml
Tags: 3d, sass, transform, animation, shutterstock

8. New Cube Thingy

CSS Cubes - New cube thingy
for show and tell
Author: Kyle Shanks (mavrK)
Created on: August 8, 2016
Made with: Slim, Stylus, JS
CSS Pre-processor: Stylus
JS Pre-processor: None
HTML Pre-processor: Slim

9. Untitled

CSS Cubes - Untitled
Author: yoksel (yoksel)
Created on: June 14, 2016
Made with: HTML, SCSS

10. Waving Cubes CSS

CSS Cubes - Waving Cubes CSS
Author: David Verlangieri (verlangieri)
Created on: June 7, 2016
Made with: Pug, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug

11. Cube Flipping Loader

CSS Cubes - Cube Flipping Loader
CSS Simple Cube Flip Loading Animation
Author: Nikhil Krishnan (nikhil8krishnan)
Created on: May 17, 2016
Made with: HTML, SCSS
Tags: cube, flip, animation, loader, box animation

12. CSS Waving Cubes 2

CSS Cubes - CSS Waving Cubes 2
Author: David Verlangieri (verlangieri)
Created on: May 16, 2016
Made with: Pug, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug

13. CSS Fruit Cubes (no JS)

CSS Cubes - CSS Fruit Cubes (no JS)
A simple quick fun demo inspired by this tweet & image.
Author: Ana Tudor (thebabydino)
Created on: May 17, 2015
Made with: Haml, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Haml
Tags: transform, 3d, sass

14. 80s Retro Spinning Cube

CSS Cubes - 80s Retro spinning cube
Keeping on the 80s retro vibe
Author: Hugo Darby-Brown (hugo)
Created on: April 18, 2014
Made with: HTML, SCSS

15. 3D Cube Image Gallery

CSS Cubes - 3D cube image gallery
An image gallery in form of a 3D cube. The demo uses CSS3 3D and animation properties to create a nice animated cube. Image credits: Parag Gour (my brother)
Author: Kushagra Gour (chinchang)
Created on: July 7, 2013
Made with: HTML, SCSS
Tags: css3, animation, 3d, gallery

16. A Simple CSS 3D Cube

CSS Cubes - A simple CSS 3D cube
Made with https://desandro.github.io/3dtransforms/docs/cube.html
Author: Christian Malek (Phis)
Created on: October 9, 2015
Made with: HTML, CSS

17. PURE CSS 3D CUBE

CSS Cubes - PURE CSS 3D CUBE
Forked from Wifeo's Pen PURE CSS 3D CUBE.
Author: Bryan Braun (bryanbraun)
Created on: July 5, 2015
Made with: HTML, CSS, JS
Tags: animation, cube, keyframes, transform, css3

18. Abstract Cube

CSS Cubes - Abstract Cube
CSS 3D exploration and render test
Author: Mattia Astorino (equinusocio)
Created on: August 5, 2020
Made with: HTML, PostCSS
Tags: css, html, cube, pure, abstract

19. 3D Cube Social Media Pure Css3 Animation

CSS Cubes - 3D Cube Social Media Pure Css3 Animation
3D Cube Loading Pure Css3 Animation
Author: Okba Design (Okba-Design)
Created on: July 27, 2020
Made with: HTML, CSS
Tags: 3d, cube, social, media, pure

20. PURE CSS 3D CUBE

CSS Cubes - PURE CSS 3D CUBE
Author: Wifeo (wifeo)
Created on: September 18, 2014
Made with: HTML, CSS, JS
Tags: animation, cube, keyframes, transform, css3

21. 3D CSS Cube With Vertical Rotate On Hover

CSS Cubes - 3D CSS cube with vertical rotate on hover
http://cssdeck.com/labs/css3-flipping-cube
Author: digisam (digisam)
Created on: April 13, 2015
Made with: HTML, SCSS

22. 3D Nahal Cube

CSS Cubes - 3D Nahal cube
This is an animated 3D cube which has a logo called "Nahal"; Nahal is a brand for my brother;he builds whiteBoard and blackBoard
Author: Parsa (parsefi)
Created on: February 28, 2020
Made with: HTML, CSS
Tags: parsefi, parsa, cube, 3d-cube, animation

23. Spinning CSS

CSS Cubes - Spinning CSS
A recreation of this animation by reona396 with only CSS
Author: Ryan Mulligan (hexagoncircle)
Created on: February 19, 2020
Made with: Pug, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: css-animation, cube, rotation, animation delay, css-variables

24. CSS Cube With Masked Image

CSS Cubes - CSS Cube With Masked Image
Author: Drpz (Derps)
Made with: Pug, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: Babel
HTML Pre-processor: Pug

25. CodeSandbox.io Spinner

CSS Cubes - CodeSandbox.io Spinner
Author: Manan Tank (MananTank)
Created on: July 30, 2020
Made with: Pug, Stylus
CSS Pre-processor: Stylus
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: animation, codesandbox, spinner, 3d, cube

26. CSS Cube

CSS Cubes - CSS Cube
Author: Gemma Stiles (GemmaStiles)
Created on: August 25, 2020
Made with: HTML, SCSS
Tags: css, cube, 3dcube

27. CSS Pastel Rubik's Cube

CSS Cubes - CSS Pastel Rubik's Cube
A little experiment in working with 3D objects in CSS only. A Rubik's cube, but with a pastel twist :) CSS animation used to rotate the object so the cube shape is more visible I created this image working from the tutorial in Smashing Magazine: https://www.smashingmagazine.com/2016/07/f...
Read More
Author: Suzanne Aitchison (aitchiss)
Created on: May 26, 2020
Made with: HTML, CSS
Tags: css, 3d, cube, animation, rubiks

28. Single Div CSS Sinking Cube

CSS Cubes - Single div CSS sinking cube
A CSS cube sinks, disappears, and then reappears.
Author: Lynn Fisher (lynnandtonic)
Created on: May 15, 2020
Made with: HTML, Stylus
Tags: illustration, css, cube, shapes, animation

29. Rotating Elements

CSS Cubes - Rotating elements
Author: Zed Dash (z-)
Created on: September 11, 2019
Made with: HTML, SCSS
Tags: css, 3d, cube

30. 3D Cube Animation

CSS Cubes - 3D Cube Animation
A rotating 3D Cube '_'
Author: Novum Perspective Design (Launghe)
Created on: May 20, 2019
Made with: HTML, SCSS
Tags: 3d shapes, shapes, cube, css-3d, css-cube

31. Pure CSS Geometric Shapes Background Made By Linear-gradient

CSS Cubes - Pure CSS Geometric Shapes Background Made By Linear-gradient
Author: RYO (Mryoo)
Created on: September 12, 2019
Made with: CSS
Tags: geometric, linear-gradient, gradation, cube