Live demo: https://mohanadx.github.io/3D/
Repository: https://github.com/MohanadX/3D
This project is a simple experiment to explore 3D transformations in CSS.
It serves as a learning exercise in using HTML, CSS (specifically CSS 3D transforms), and how to structure a minimal 3D scene for the web, without relying on external 3D libraries or WebGL.
index.htmlβ the main HTML page for the demo.cube.cssβ CSS file defining the 3D transforms, cube faces, layout, and animation/style for the 3D element(s).- A 3D cube implemented via pure HTML + CSS.
3D/
βββ index.html β entry point for the live demo
βββ cube.css β styles including 3D transforms
βββ README.md β this project description
- Uses CSS
transform: rotateX / rotateY / translateZ / perspective(or similar) to position and render faces in 3D space. - No JavaScript logic β the 3D effect is purely CSS-driven.
- The cube (or any 3D shape) is built using HTML elements (e.g.
<div>) for each βfaceβ, styled and transformed via CSS to appear in three-dimensional space.