Skip to content

MohanadX/3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

3D β€” CSS 3D Experiment

Live demo: https://mohanadx.github.io/3D/
Repository: https://github.com/MohanadX/3D

🎯 Project Purpose

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.

πŸ”§ What’s Inside

  • 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.

πŸ“ Folder Structure

3D/
β”œβ”€β”€ index.html ← entry point for the live demo
β”œβ”€β”€ cube.css ← styles including 3D transforms
└── README.md ← this project description

πŸ’‘ How It Works (Technically)

  • 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.

About

This is 3D project to learn dealing with 3D in CSS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors