Radmonized Skyscraper With Animation
How do I make an radmonized skyscraper with animation?
I left the walls transparent because it looks cool.. What is a radmonized skyscraper with animation? How do you make a radmonized skyscraper with animation? This script and codes were developed by David Dietle on 24 September 2022, Saturday.
Radmonized Skyscraper With Animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Radmonized Skyscraper With Animation</title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="wrapper"> <div class="building"> <div class="front"> </div> <div class="back"></div> <div class="top"></div> <div class="bottom"> <div class="window"> </div> <div class="door"></div> </div> <div class="left"></div> <div class="right"></div> </div>
</div> <script src='https://code.jquery.com/jquery-2.2.4.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Radmonized Skyscraper With Animation - Script Codes CSS Codes
html, body { background-color: azure; } .container { margin-top: 100px; min-height: 900px; background-color: azure; } .wrapper { height: 1000px; margin-top: 50px; position: relative; perspective: 1000px; perspective-origin: 50% 100px; } .building { position: relative; margin: 0 auto; width: 200px; transform: rotateX(-20deg) rotateY(-35deg) translateY(400px); transform-style: preserve-3d; animation: spin 4s infinite linear; /*transition: all 1s linear;*/ } .building > div { position: absolute; display: block; background: rgba(175,175,175,.25); box-shadow: inset 0 0 30px rgba(0,0,0,0.2); font-size: 10px; text-align: center; color: rgba(0,0,0,0.5); font-family: sans-serif; text-transform: uppercase; word-wrap:hyphenate; transition: all 1s linear; } div.back { bottom:0px; } div.right { transform-origin: top right; bottom:0px; } div.left { transform-origin: center left; bottom:0px; } div.top { transform-origin: top center; background-color: #232525; box-shadow: inset 0 0 30px rgba(175,175,175,2); } div.bottom { transform-origin: bottom center; bottom:0px; box-shadow: 20px -20px 150px #999999; } div.front { transform: translateZ(100px); bottom:0px; } .window { height: 30px; width: 18px; background-color: slategray; display: inline-block; float: left; margin: 7px 0px 0px 6px; border: solid 1px grey; box-shadow: inset 0 0 5px black; } .lighted { background-color: antiquewhite; box-shadow: 0 0 5px yellow; } .doorWay { height: 40px; width: 50px; left: 50%; margin-left: -25px; position: absolute; bottom: 1px; background-color: black; box-shadow: inset 0 -10px 30px grey; } .doorWay:hover .door:last-child { transform: translateX(25px); transition: .6s; transform-origin: right center; } .doorWay:hover .door:first-child { transform: translateX(-25px); transition: .6s; transform-origin: left center; } .door { top: 0px; height: 40px; width: 25px; background-color: lightgray; display: inline-block; box-shadow: inset 0 0 5px black; }
Radmonized Skyscraper With Animation - Script Codes JS Codes
$(document).ready(function () { generateBuilding(); }); function generateBuilding() { var seedH = parseInt(Math.random() * 10); var seedW = parseInt(Math.random() * 10); var seedD = parseInt(Math.random() * 10); var height = Math.max(Math.min(seedH * 50, 500), 50); var width = Math.max(Math.min(seedW * 50, 250), 50); var depth = Math.max(Math.min(seedD * 50, 250), 50); var bld = $('.building'); $(bld).find('.front').css({ 'height': height + 'px', 'width': width + 'px', 'transform': 'translateZ(' + (depth-depth) + 'px)' }); $(bld).find('.back').css({ 'height': height + 'px', 'width': width + 'px', 'transform': 'translateZ(-' + depth + 'px) rotateY(180deg)' }); $(bld).find('.left').css({ 'height': height + 'px', 'width': depth + 'px', 'transform': 'rotateY(270deg) translateX(-' + depth + 'px)' }); $(bld).find('.right').css({ 'height': height + 'px', 'width': depth + 'px', 'transform': 'rotateY(-270deg) translateX(' + depth + 'px) translateZ(' + -(depth-width) + 'px)' }); $(bld).find('.top').css({ 'height': depth + 'px', 'width': width + 'px', 'transform': ' rotateX(90deg) translateX(0px) translateY(-' + depth + 'px) translateZ(' + height + 'px)' }); $(bld).find('.bottom').css({ 'height': depth + 'px', 'width': width + 'px', 'transform': 'rotateX(-90deg) translateY(' + depth + 'px)' }); populateWindows('.front'); populateWindows('.back'); populateWindows('.left'); populateWindows('.right'); } function populateWindows(face) { var dooradjuster = 0; if (face == '.front') { var doorway = $('<div></div>'); $(doorway).addClass('doorWay'); var door1 = $('.bottom').find('.door').first().clone(); var door2 = $('.bottom').find('.door').first().clone(); $(doorway).append(door1); $(doorway).append(door2); $(face).append(doorway); dooradjuster = 1; } var faceH = $(face).outerHeight(); var faceW = $(face).outerWidth(); var windowH = $('.bottom').find('.window').outerHeight() + parseInt($('.bottom').find('.window').css('margin-top').replace('px', '')); var windowW = $('.bottom').find('.window').outerWidth() + parseInt($('.bottom').find('.window').css('margin-left').replace('px', '')); var across = Math.floor(faceW / windowW); var down = Math.floor(faceH / windowH) - dooradjuster; var total = (across * down); for (var i = 0; i < total; i++) { var win = $('.bottom').find('.window').first().clone(); var isWindow = Math.random(); if (isWindow > .5 && isWindow < .6) { $(win).addClass('lighted'); } $(face).append(win); } }
Developer | David Dietle |
Username | ddietle |
Uploaded | September 24, 2022 |
Rating | 4 |
Size | 3,121 Kb |
Views | 14,168 |
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 |
CSS Only Rotating Cube Menu | 2,119 Kb |
Glowing Acid Bloop | 2,904 Kb |
Random City | 8,204 Kb |
Pure CSS Spinning Cogs | 1,825 Kb |
Waving Rebel Alliance Flag | 2,309 Kb |
Old Tymey Book | 7,018 Kb |
3D Grid | 3,137 Kb |
Lights | 2,655 Kb |
CSS Flickering Image | 13,709 Kb |
Fireflies In The Night Sky | 3,327 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 |
Simple jQuery Slider | Jurbank | 2,874 Kb |
Custom checkbox example | Capelo | 3,495 Kb |
Isometric css island | Xaddict | 2,950 Kb |
Mosaic transition effect between two photos using jQuery | Stathisg | 2,518 Kb |
Google Maps API Ground Overlay | Boycetrus | 2,961 Kb |
Fixed Scrolling Nav Bar | Philsinatra | 0 Kb |
Improved Page Flipping Effect | Usaphp | 5,201 Kb |
Weather App | Kw7oe | 3,162 Kb |
Monochrome Form | AlienPiglet | 3,096 Kb |
Mini Profile | Frytyler | 3,828 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!