Baymax
How do I make an baymax?
What is a baymax? How do you make a baymax? This script and codes were developed by Animesh Kumar on 14 December 2022, Wednesday.
Baymax - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Baymax</title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="overlay"> <div class="green-line"></div>
</div>
<div class="result"> <h2>Results</h2> <div class="graph"> <div class="first"> <div class="day">Mon</div> </div> <div class="second"> <div class="day">Tue</div> </div> <div class="third"> <div class="day">Wed</div> </div> </div>
</div>
<div class="speech-bubble"> <div class="intro">Hello! I am Baymax. Your personal healthcare companion. Press the scan button so that I can scan you and predict your happiness levels for the next 3 days.</div> <button>Start scanning</button>
</div>
<div class="container"> <div class="right"></div> <div class="left"></div> <div class="face"> <div class="eyes"></div> </div> <div class="body"> <div class="chip"></div> </div> <div class="hand-right"> <div class="finger"></div> <div class="finger"></div> <div class="finger"></div> <div class="finger"></div> <div class="left-curve"></div> <div class="right-curve"></div> <div class="thumb"></div> </div> <div class="hand-left"></div>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Baymax - Script Codes CSS Codes
@import url("https://fonts.googleapis.com/css?family=Roboto:100,400,500");
html, body { height: 100%;
}
body { background: -webkit-linear-gradient(right, #606c88, #3f4c6b); background: linear-gradient(to left, #606c88, #3f4c6b); margin: 0;
}
body .overlay { display: none; position: fixed; height: 100%; width: 100%; background: rgba(0, 0, 0, 0.85); z-index: 110;
}
body .overlay .green-line { content: ""; position: absolute; width: 100%; border: 2px solid #4BE85A;
}
body .overlay .scan { -webkit-animation: scan 1s linear alternate; animation: scan 1s linear alternate; -webkit-animation-iteration-count: 4; animation-iteration-count: 4;
}
body .result { display: none; position: absolute; bottom: 150px; right: 500px; background: #fff; padding: 0px 50px 65px; box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.2), -4px 4px 4px 0px rgba(0, 0, 0, 0.2);
}
body .result h2 { font-family: roboto; font-weight: 100; color: #777; text-transform: uppercase; font-size: 48px;
}
body .result .graph { position: relative; height: 160px; border-left: 2px solid #888; border-bottom: 2px solid #888; display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-pack: distribute; justify-content: space-around; -webkit-box-align: end; -ms-flex-align: end; align-items: flex-end;
}
body .result .graph .first, body .result .graph .second, body .result .graph .third { position: relative; -webkit-transition: all 0.9s ease-out; transition: all 0.9s ease-out;
}
body .result .graph .first .day, body .result .graph .second .day, body .result .graph .third .day { position: absolute; bottom: -40px; color: #888; font-family: roboto; font-size: 14px; left: 50%; -webkit-transform: translate(-50%); transform: translate(-50%); text-align: center;
}
body .result .graph .first { height: 0px; width: 40px; background: -webkit-linear-gradient(#43cea2, #185a9d); background: linear-gradient(#43cea2, #185a9d);
}
body .result .graph .second { height: 0px; width: 40px; background: -webkit-linear-gradient(#43cea2, #185a9d); background: linear-gradient(#43cea2, #185a9d);
}
body .result .graph .third { height: 0px; width: 40px; background: -webkit-linear-gradient(#43cea2, #185a9d); background: linear-gradient(#43cea2, #185a9d);
}
body .speech-bubble { position: absolute; bottom: 320px; right: 30px; height: 210px; width: 400px; background: #fff; border-radius: 20px; box-sizing: border-box; padding: 20px; z-index: 1;
}
body .speech-bubble .intro { font-family: roboto; color: #888; font-size: 18px; line-height: 28px;
}
body .speech-bubble button { margin-top: 15px; padding: 10px 15px; font-weight: 500; font-family: roboto; text-transform: uppercase; background: #4BE85A; border: none; color: #fff; border-radius: 10px; cursor: pointer;
}
body .speech-bubble button:focus { outline: none;
}
body .speech-bubble::after { content: ""; position: absolute; bottom: -20px; left: calc(50% - 50px); box-sizing: border-box; border-top: 20px solid #fff; border-right: 15px solid transparent; border-left: 15px solid transparent;
}
body .container { position: absolute; right: 0; bottom: 0; height: 360px; width: 500px; overflow: hidden;
}
body .container .face { position: absolute; right: 100px; top: 55px; height: 120px; width: 180px; background: #ddd; border-radius: 50%; z-index: 100;
}
body .container .face .eyes { position: absolute; top: 60px; left: calc(50% - 40px); height: 5px; width: 80px; background: #333;
}
body .container .face .eyes::after, body .container .face .eyes::before { content: ""; position: absolute; top: -13px; height: 24px; width: 20px; background: #333; border-radius: 50%;
}
body .container .face .eyes::after { right: -10px; -webkit-transform: rotate(-10deg); transform: rotate(-10deg);
}
body .container .face .eyes::before { -webkit-transform: rotate(10deg); transform: rotate(10deg);
}
body .container .body { position: absolute; bottom: -380px; right: 10px; height: 600px; width: 380px; background: #ddd; border-radius: 50% 50%; overflow: hidden; z-index: 10;
}
body .container .body .chip { position: absolute; height: 46px; width: 46px; background: #b0cbd2; border-radius: 50%; top: 85px; right: 85px; z-index: 10; border: 10px solid #fff; overflow: hidden;
}
body .container .body .chip::after { content: ""; position: absolute; bottom: 0px; height: 20px; width: 100%; background: #cadde1;
}
body .container .body .chip::before { content: ""; position: absolute; bottom: 20px; left: calc(50% - 12px); width: 24px; box-sizing: border-box; border-bottom: 6px solid #cadde1; border-left: 4px solid transparent; border-right: 4px solid transparent;
}
body .container .body::after { content: ""; position: absolute; left: calc(50% - 120px); bottom: 30px; height: 500px; width: 240px; background: #fff; border-radius: 50%;
}
body .container .body::before { content: ""; position: absolute; top: -190px; left: calc(50% - 130px); height: 240px; width: 280px; background: rgba(0, 0, 0, 0.1); border-radius: 50%;
}
body .container .hand-left { position: absolute; height: 250px; width: 100px; background: #cacaca; border-radius: 50%; right: 10px; bottom: -80px; z-index: 5; -webkit-transform: rotate(-20deg); transform: rotate(-20deg);
}
body .container .hand-right { position: absolute; left: 90px; bottom: -50px; height: 180px; width: 90px; background: #ddd; border-radius: 0px 0px 0 0; -webkit-transform: rotate(-15deg); transform: rotate(-15deg); -webkit-transform-origin: 50% 130px; transform-origin: 50% 130px; z-index: 20;
}
body .container .hand-right .finger { width: 20px; position: absolute; background: #eaeaea; border-radius: 10px; z-index: -1; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -ms-flex-pack: distribute; justify-content: space-around; padding: 8px 0; box-sizing: border-box;
}
body .container .hand-right .finger::after, body .container .hand-right .finger::before { content: ""; height: 3px; width: 100%; background: rgba(0, 0, 0, 0.03);
}
body .container .hand-right .finger:nth-child(1) { left: 0; height: 50px; top: -40px;
}
body .container .hand-right .finger:nth-child(2) { left: 22px; height: 50px; top: -48px;
}
body .container .hand-right .finger:nth-child(3) { left: 44px; height: 50px; top: -52px;
}
body .container .hand-right .finger:nth-child(4) { left: 66px; height: 50px; top: -46px;
}
body .container .hand-right .thumb { position: absolute; right: -15px; top: -15px; height: 35px; width: 20px; border-radius: 10px 10px 7px 7px; background: #eaeaea; z-index: 20; -webkit-transform: rotate(50deg); transform: rotate(50deg); display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -ms-flex-pack: distribute; justify-content: space-around; box-sizing: border-box; padding: 5px 0px;
}
body .container .hand-right .thumb::after, body .container .hand-right .thumb::before { content: ""; height: 3px; width: 100%; background: rgba(0, 0, 0, 0.03); z-index: 30;
}
body .container .hand-right .thumb:nth-child(4) { left: 66px; height: 50px; top: -46px;
}
body .container .hand-right::after { content: ""; position: absolute; top: -17px; height: 35px; width: 90px; border-radius: 50%; background: #ddd;
}
body .container .hand-right .left-curve { content: ""; position: absolute; left: -7px; height: 150px; width: 14px; background: #ddd; border-radius: 50%;
}
body .container .hand-right .right-curve { content: ""; position: absolute; right: -7px; height: 150px; width: 14px; background: #ddd; border-radius: 50%; box-shadow: 9px 27px 0px 8px rgba(0, 0, 0, 0.1);
}
@-webkit-keyframes scan { 0% { top: 0px; } 100% { top: 100%; }
}
@keyframes scan { 0% { top: 0px; } 100% { top: 100%; }
}
Baymax - Script Codes JS Codes
$(document).ready(function(){ $('button').click(function(){ $('.speech-bubble').hide(); $('.overlay').fadeIn(300, function(){ $('.green-line').addClass("scan"); }) setTimeout(function(){ $('.overlay').fadeOut(300, function(){ $('.green-line').removeClass("scan"); $('.result').fadeIn("fast", function(){ var x = (Math.floor(Math.random()*41) + 60); var y = (Math.floor(Math.random()*41) + 60); var z = (Math.floor(Math.random()*41) + 60); var d = new Date(); var day = d.getDay(); $(".first").css({"height" : parseInt(x * 1.5)+"px"}); $(".first .day").html(Day(day) + "<br>" + x+"%"); $(".second").css({"height" : parseInt(y * 1.5)+"px"}); $(".second .day").html(Day(day + 1)+ "<br>" + y+"%"); $(".third").css({"height" : parseInt(z * 1.5)+"px"}); $(".third .day").html(Day(day + 2)+ "<br>" + z+"%"); }); }); }, 5000); });
});
function Day(a){ switch(a) { case 0: case 7: return "Sun"; case 1: case 8: return "Mon"; case 2: return "Tue"; case 3: return "Wed"; case 4: return "Thu"; case 5: return "Fri"; case 6: return "Sat"; }
}
Developer | Animesh Kumar |
Username | animeshk874 |
Uploaded | December 14, 2022 |
Rating | 4 |
Size | 6,164 Kb |
Views | 10,120 |
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 |
Indian Flag | 3,247 Kb |
A Pen by Animesh Kumar | 2,875 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 |
Ocean | Gordonnl | 2,817 Kb |
Headroom.js demo | WickyNilliams | 3,982 Kb |
Swiftype Lower Third | Zumwalt | 4,796 Kb |
Caputre Cam with JS | KimmoCommit | 2,795 Kb |
Website Concept | Sagoza | 3,104 Kb |
Wikipedia Viewer | Thomasvaeth | 2,549 Kb |
Full page table inside the grid | Twikito | 1,864 Kb |
Word Wrap Algorithm for Multiline Canvas Text | Peterhry | 2,349 Kb |
APortfolio | Skybutterfly | 5,174 Kb |
Add This API | ThatGuySam | 2,848 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!