Hiding in a box
How do I make an hiding in a box?
Simple animation page that I created to be used when contents of a directory are hidden.. What is a hiding in a box? How do you make a hiding in a box? This script and codes were developed by Mark Thomes on 04 July 2022, Monday.
Hiding in a box - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Hiding in a box</title> <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! */ .shadow, .eyes, .iris-left, .iris-right, .box { position: absolute; top: 0; left: 0; width: 600px; height: 575px; background: url(http://withan.es/codepen/box.png) 0 0 no-repeat;
}
.boxContainer { position: absolute; display: block; width: 600px; height: 409px; top: 50%; left: 50%; margin-left: -300px; margin-top: -205px;
}
.shadow { width: 222px; height: 145px; top: 262px; left: 171px; background-position: 0px -433px;
}
.eyes { width: 51px; height: 29px; top: 346px; left: 258px; background-position: -241px -430px; animation: scan 3s infinite alternate linear;
}
.iris-left { width: 11px; height: 11px; top: 14px; left: 3px; background-position: -309px -443px; animation: scan-iris-left 1.5s infinite alternate linear;
}
.iris-right { width: 11px; height: 11px; top: 14px; left: 27px; background-position: -309px -443px; animation: scan-iris-right 1.5s infinite alternate linear;
}
.box { width: 600px; height: 409px; top: 0px; left: 0px;
}
@keyframes scan { 0% { transform: translate(-10px, 0) scale(1, 1); } 48% { transform: translate(-10px, 0) scale(1, 1); } 50% { transform: translate(0, 0) scale(1, 0); } 52% { transform: translate(10px, 0) scale(1, 1); } 100% { transform: translate(10px, 0) scale(1, 1); }
}
@keyframes scan-iris-left { 0% { transform: translate(0, 0); } 45% { transform: translate(0, 0); } 50% { transform: translate(7px, 0); } 95% { transform: translate(7px, 0); } 100% { transform: translate(0, 0); }
}
@keyframes scan-iris-right { 0% { transform: translate(0, 0); } 45% { transform: translate(0, 0); } 50% { transform: translate(9px, 0); } 95% { transform: translate(9px, 0); } 100% { transform: translate(0, 0); }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="boxContainer"> <div class="shadow"></div> <div class="eyes"> <div class="iris-left"></div> <div class="iris-right"></div> </div> <div class="box"></div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Hiding in a box - Script Codes CSS Codes
.shadow, .eyes, .iris-left, .iris-right, .box { position: absolute; top: 0; left: 0; width: 600px; height: 575px; background: url(http://withan.es/codepen/box.png) 0 0 no-repeat;
}
.boxContainer { position: absolute; display: block; width: 600px; height: 409px; top: 50%; left: 50%; margin-left: -300px; margin-top: -205px;
}
.shadow { width: 222px; height: 145px; top: 262px; left: 171px; background-position: 0px -433px;
}
.eyes { width: 51px; height: 29px; top: 346px; left: 258px; background-position: -241px -430px; animation: scan 3s infinite alternate linear;
}
.iris-left { width: 11px; height: 11px; top: 14px; left: 3px; background-position: -309px -443px; animation: scan-iris-left 1.5s infinite alternate linear;
}
.iris-right { width: 11px; height: 11px; top: 14px; left: 27px; background-position: -309px -443px; animation: scan-iris-right 1.5s infinite alternate linear;
}
.box { width: 600px; height: 409px; top: 0px; left: 0px;
}
@keyframes scan { 0% { transform: translate(-10px, 0) scale(1, 1); } 48% { transform: translate(-10px, 0) scale(1, 1); } 50% { transform: translate(0, 0) scale(1, 0); } 52% { transform: translate(10px, 0) scale(1, 1); } 100% { transform: translate(10px, 0) scale(1, 1); }
}
@keyframes scan-iris-left { 0% { transform: translate(0, 0); } 45% { transform: translate(0, 0); } 50% { transform: translate(7px, 0); } 95% { transform: translate(7px, 0); } 100% { transform: translate(0, 0); }
}
@keyframes scan-iris-right { 0% { transform: translate(0, 0); } 45% { transform: translate(0, 0); } 50% { transform: translate(9px, 0); } 95% { transform: translate(9px, 0); } 100% { transform: translate(0, 0); }
}
Developer | Mark Thomes |
Username | WithAnEs |
Uploaded | July 04, 2022 |
Rating | 3 |
Size | 3,138 Kb |
Views | 54,648 |
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 |
Up Arrow | 7,830 Kb |
Save Bar | 2,719 Kb |
SVG Search... | 7,601 Kb |
CSS Self Portrait | 9,872 Kb |
Sloshing Beaker | 7,223 Kb |
Running Character | 6,843 Kb |
CSS Birthday Cake | 8,353 Kb |
Animation Delay Debug | 7,005 Kb |
CSS3 Gradient Stripes | 6,259 Kb |
CSS Colorado Flag | 6,649 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 |
Gradients | Karpovsystems | 2,394 Kb |
Vertical Pan Hammer.js example | Jtangelder | 2,144 Kb |
Price | Catcode | 2,623 Kb |
Loading Bar | Jaradlight | 2,333 Kb |
Import shader in three.js | Khangeldy | 2,636 Kb |
HTML5 Breakout | Jaysalvat | 4,873 Kb |
Simple, flat contact form | Zeaklous | 2,719 Kb |
Break Out | AzazelN28 | 12,431 Kb |
Google Fonts Sass Mixin | HugoGiraudel | 4,237 Kb |
Vue.js Starter | Andymerskin | 1,268 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!