Mr. Robot Animation

Developer
Size
3,719 Kb
Views
34,408

How do I make an mr. robot animation?

Simple background animation, still need optimization! Credit: Animate.css. What is a mr. robot animation? How do you make a mr. robot animation? This script and codes were developed by Andy Pagès on 10 November 2022, Thursday.

Mr. Robot Animation Previews

Mr. Robot Animation - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Mr. Robot Animation</title> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <img id="logo" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/4b/Mr._Robot_Logo.svg/1280px-Mr._Robot_Logo.svg.png"> <script src='https://code.jquery.com/jquery-2.2.4.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Mr. Robot Animation - Script Codes CSS Codes

@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro);
body { background-color: #111111; overflow: hidden;
}
#logo { position: absolute; left: 0; right: 0; bottom: 0; top: 0; margin: auto; max-width: 50%; max-height:100%; overflow:auto;
}
.binary { position: absolute; top: 0; left: 300px; z-index: -1; font-family: 'Source Sans Pro', sans-serif; -webkit-animation-duration: 800ms; writing-mode: vertical-rl; text-orientation: sideways; color: white; text-shadow: 0 0 10px #91EDFF;
}

Mr. Robot Animation - Script Codes JS Codes

"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
var Random = function () { function Random() { _classCallCheck(this, Random); } Random.generateBinary = function generateBinary() { var random = Math.random(); if (random > 0.5) { return 1; } else { return 0; } }; Random.generate = function generate(min, max) { return Math.floor(Math.random() * max + min); }; return Random;
}();
var Binary = function () { function Binary() { _classCallCheck(this, Binary); this.value = Random.generateBinary(); } Binary.prototype.animate = function animate(ts, leftOffset, topOffset) { var div = document.createElement("div"); $(div).css("font-size", ts + "px"); $(div).css("top", topOffset * (ts / 2)); $(div).css("left", leftOffset + "px"); $(div).text(this.value); $(div).addClass("binary"); $(div).hide(); $("body").append(div); $(div).show().addClass("animated fadeIn").on(animationEnd, this.fadeInEnd); return $(div).offset().top; }; Binary.prototype.fadeInEnd = function fadeInEnd(event) { var $binary = $(event.currentTarget); $binary.removeClass("animated fadeIn"); $binary.addClass("animated fadeOut").on(animationEnd, function () { $binary.remove(); }); }; return Binary;
}();
var BinaryLine = function () { function BinaryLine(lO, tS, dS) { _classCallCheck(this, BinaryLine); this.leftOffset = lO; this.textSize = tS; this.documentSize = dS; } BinaryLine.prototype.generate = function generate() { var iterator = 1; var size = this.length; var fontSize = this.textSize; var documentSize = this.documentSize; var currentOffset = 0; var leftOffset = this.leftOffset; var interval = setInterval(function () { if (currentOffset < documentSize) { var binary = new Binary(); currentOffset = binary.animate(fontSize, leftOffset, iterator); iterator++; } else { clearInterval(interval); } }, 80); }; return BinaryLine;
}();
var BinaryAnimation = function () { function BinaryAnimation() { _classCallCheck(this, BinaryAnimation); } BinaryAnimation.prototype.start = function start() { setInterval(function () { new BinaryLine(Random.generate(0, $(document).width()), Random.generate($(document).width() * 0.008, $(document).width() * 0.012), $(document).height()).generate(); }, 400); setInterval(function () { $(".binary").remove(); }, 30000); }; return BinaryAnimation;
}();
new BinaryAnimation().start();
Mr. Robot Animation - Script Codes
Mr. Robot Animation - Script Codes
Home Page Home
Developer Andy Pagès
Username andyNroses
Uploaded November 10, 2022
Rating 3.5
Size 3,719 Kb
Views 34,408
Do you need developer help for Mr. Robot 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!

Andy Pagès (andyNroses) Script Codes
Create amazing web content 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!