Hello World
How do I make an hello world?
Playing with prespective and multiple 3d cubes.. What is a hello world? How do you make a hello world? This script and codes were developed by Chris Hanson on 01 October 2022, Saturday.
Hello World - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Hello World</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ * { box-sizing: border-box;
}
.container { width: 600px; margin: 60px auto; text-align: center; perspective: 400px;
}
.cube { width: 80px; height: 80px; position: relative; display: inline-block; transform-style: preserve-3d; trasnform: translateZ(-40px); margin-left: 10px; animation: rot 3s linear infinite;
}
.cube .face:nth-child(1) { background: white; transform: translateZ(40px);
}
.cube .face:nth-child(2) { background: #333; color: white; transform: rotateX(-90deg) translateZ(40px);
}
.cube .face:nth-child(3) { transform: rotateY(-90deg) translateZ(40px);
}
.cube .face:nth-child(4) { transform: rotateY(90deg) translateZ(40px);
}
.cube .face:nth-child(5) { transform: rotateX(90deg) translateZ(40px);
}
.cube .face:nth-child(6) { transform: rotateX(180deg) translateZ(40px);
}
.face { width: 100%; height: 100%; border: 1px solid #d3d3d3; position: absolute; background: #e3e3e3; text-align: center; line-height: 80px; font-size: 36px; font-weight: bold; transform: translateZ(40px);
}
.cube-0 { animation-delay: 0s;
}
.cube-1 { animation-delay: 0.2s;
}
.cube-2 { animation-delay: 0.4s;
}
.cube-3 { z-index: -3; animation-delay: 0.6s;
}
.cube-4 { z-index: -4; animation-delay: 0.8s;
}
@keyframes rot { 20% { transform: rotateX(0deg); } 30% { transform: rotateX(90deg); } 70% { transform: rotateX(90deg); } 80% { transform: rotateX(0deg); }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class='container'> <div class='cube cube-0'> <div class='face'> h </div> <div class='face'> w </div> <div class='face'></div> <div class='face'></div> <div class='face'></div> <div class='face'></div> </div> <div class='cube cube-1'> <div class='face'> e </div> <div class='face'> o </div> <div class='face'></div> <div class='face'></div> <div class='face'></div> <div class='face'></div> </div> <div class='cube cube-2'> <div class='face'> l </div> <div class='face'> r </div> <div class='face'></div> <div class='face'></div> <div class='face'></div> <div class='face'></div> </div> <div class='cube cube-3'> <div class='face'> l </div> <div class='face'> l </div> <div class='face'></div> <div class='face'></div> <div class='face'></div> <div class='face'></div> </div> <div class='cube cube-4'> <div class='face'> o </div> <div class='face'> d </div> <div class='face'></div> <div class='face'></div> <div class='face'></div> <div class='face'></div> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Hello World - Script Codes CSS Codes
* { box-sizing: border-box;
}
.container { width: 600px; margin: 60px auto; text-align: center; perspective: 400px;
}
.cube { width: 80px; height: 80px; position: relative; display: inline-block; transform-style: preserve-3d; trasnform: translateZ(-40px); margin-left: 10px; animation: rot 3s linear infinite;
}
.cube .face:nth-child(1) { background: white; transform: translateZ(40px);
}
.cube .face:nth-child(2) { background: #333; color: white; transform: rotateX(-90deg) translateZ(40px);
}
.cube .face:nth-child(3) { transform: rotateY(-90deg) translateZ(40px);
}
.cube .face:nth-child(4) { transform: rotateY(90deg) translateZ(40px);
}
.cube .face:nth-child(5) { transform: rotateX(90deg) translateZ(40px);
}
.cube .face:nth-child(6) { transform: rotateX(180deg) translateZ(40px);
}
.face { width: 100%; height: 100%; border: 1px solid #d3d3d3; position: absolute; background: #e3e3e3; text-align: center; line-height: 80px; font-size: 36px; font-weight: bold; transform: translateZ(40px);
}
.cube-0 { animation-delay: 0s;
}
.cube-1 { animation-delay: 0.2s;
}
.cube-2 { animation-delay: 0.4s;
}
.cube-3 { z-index: -3; animation-delay: 0.6s;
}
.cube-4 { z-index: -4; animation-delay: 0.8s;
}
@keyframes rot { 20% { transform: rotateX(0deg); } 30% { transform: rotateX(90deg); } 70% { transform: rotateX(90deg); } 80% { transform: rotateX(0deg); }
}
Developer | Chris Hanson |
Username | chrishanson |
Uploaded | October 01, 2022 |
Rating | 3 |
Size | 3,501 Kb |
Views | 12,144 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Photo crop prototype | 19,337 Kb |
Rotating 3d cube | 2,957 Kb |
Uiselect ie8 issues | 15,255 Kb |
Fireworks | 3,514 Kb |
UI Select Multiselect | 3,372 Kb |
Search bar | 5,899 Kb |
Alternating rotating shaps | 4,980 Kb |
Lf layout | 6,820 Kb |
Css spinner | 2,953 Kb |
A Pen by Chris Hanson | 9,469 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Magnus 3 | ARocketfish | 7,944 Kb |
Javascript Welcome | Peterlewicki | 1,573 Kb |
SlideDown FixedMenu | Mp_graphic | 5,602 Kb |
Bootstrap 3 Price Table | Honglio | 2,655 Kb |
Css3 loader | Clknap | 2,391 Kb |
React JS Movie Info App | MTushar | 4,870 Kb |
Gulpfile | Aimhigherwebdesign-amy | 1,765 Kb |
Nested table email layout | Massimo-cassandro | 2,355 Kb |
Responsive scrolling text | Ashdurham | 2,259 Kb |
Price | Catcode | 2,623 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!