Radmonized Skyscraper With Animation

Developer
Size
3,121 Kb
Views
14,168

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 Previews

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); } }
Radmonized Skyscraper With Animation - Script Codes
Radmonized Skyscraper With Animation - Script Codes
Home Page Home
Developer David Dietle
Username ddietle
Uploaded September 24, 2022
Rating 4
Size 3,121 Kb
Views 14,168
Do you need developer help for Radmonized Skyscraper With Animation?

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!

David Dietle (ddietle) Script Codes
Create amazing blog posts with AI!

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!