Folded Video
How do I make an folded video?
NOTE: Please watch in latest Canary with flag "Enable experimental Web Platform features" enabled.. What is a folded video? How do you make a folded video? This script and codes were developed by Daniel Gooß on 10 November 2022, Thursday.
Folded Video - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Folded Video</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!--<p class="note">NOTE: Please watch in latest Canary with flag <strong>"Enable experimental Web Platform features"</strong> enabled.</p>-->
<p class="note">NOTE: Due to changes in the Google Chrome road map, the support for CSS Regions in Canary was removed, which makes this Pen unfunctional, sorry. I will update it as soon as Regions will return.</p>
<video class="source" src="https://ie.microsoft.com/testdrive/graphics/videoformatsupport/big_buck_bunny_trailer_480p_high.mp4" controls autoplay loop width="854" height="480"></video>
<div class="wrapper"> <ul id="fold"> <li id="region1" class="page"> <div class="region"></div> <div class="cover"> <div class="frontcover"> <h1><img src="http://upload.wikimedia.org/wikipedia/de/e/ea/Big_Buck_Bunny.svg" alt="" /></h1> <h2>In CSS Regions</h2> </div> </div> </li> <li id="region2" class="page"> <div class="region"></div> </li> <li id="region3" class="page"> <div class="region"></div> <div class="cover"></div> </li> </ul>
</div>
</body>
</html>
Folded Video - Script Codes CSS Codes
@-webkit-keyframes fold-first { 0% { -webkit-transform: rotateX(-180deg); } 50% { box-shadow: 0 10px 20px rgba(0, 0, 0, 0); } 100% { box-shadow: -5px -10px 20px rgba(0, 0, 0, 0.25); -webkit-transform: rotateX(-10deg); }
}
@-webkit-keyframes fold-last { 0% { -webkit-transform: rotateX(180deg); } 50% { box-shadow: 0 10px 20px rgba(0, 0, 0, 0); } 100% { box-shadow: -5px 10px 20px rgba(0, 0, 0, 0.25); -webkit-transform: rotateX(10deg); }
}
html,
body { overflow: auto; height: 100%; background: linear-gradient(0deg, #0083B7 0%, #00A8E6 100%); color: #333; font-family: Arial, sans-serif;
}
.wrapper { margin: 100px auto; width: 854px; height: 480px;
}
.source { z-index: 3; -webkit-transform: rotateZ(90deg); -webkit-transform-origin: 28.1% 50%; -webkit-flow-into: source;
}
#fold { display: inline-block; margin: 0; padding: 0; width: 854px; width: 480px; height: 854px; -webkit-transform: rotateZ(-90deg); -webkit-transform-origin: 50% 28.1%; -webkit-perspective: 1400px;
}
#fold .page { position: relative; display: block; width: 480px; height: 284px; list-style-type: none; -webkit-transform-style: preserve-3d;
}
#fold .cover,
#fold .region { position: absolute; top: 0; left: 0; width: 100%; height: 100%; -webkit-backface-visibility: hidden;
}
#fold .region { background-color: #000; -webkit-flow-from: source;
}
#fold .cover { background-color: #fff; -webkit-transform: rotateX(180deg);
}
#fold .frontcover { display: inline-block; width: 284px; height: 480px; -webkit-transform: rotateZ(90deg) translateY(-480px); -webkit-transform-origin: 0% 0%;
}
#fold .frontcover h1,
#fold .frontcover h2 { display: block; margin: 100px auto; width: 80%; text-align: center;
}
#fold .frontcover img { max-width: 100%;
}
#fold #region1 { z-index: 2; transition: -webkit-transform 2s; -webkit-transform: rotateX(-180deg); -webkit-transform-origin: 50% 100%; -webkit-animation: fold-first 2s 2s both;
}
#fold #region1 .region { -webkit-filter: brightness(0.95);
}
#fold #region2 { z-index: 0; box-shadow: -5px 0 20px rgba(0, 0, 0, 0.25); -webkit-transform: translateZ(0);
}
#fold #region3 { z-index: 1; -webkit-transform-origin: 50% 0%; -webkit-animation: fold-last 2s 4s both;
}
#fold #region3 .region { -webkit-filter: brightness(1.07);
}
.note { padding: 10px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25); background-color: #fff; text-align: center;
}
Developer | Daniel Gooß |
Username | daniel_gooss |
Uploaded | November 10, 2022 |
Rating | 3 |
Size | 3,913 Kb |
Views | 12,144 |
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 |
Web Component Switches | 4,335 Kb |
WebGL Container | 2,300 Kb |
IPhone Ui | 8,602 Kb |
Navigation concept | 14,510 Kb |
Revolver Slideshow | 5,445 Kb |
IPhone Ui - Content only | 6,499 Kb |
CSS Blur Effect | 3,176 Kb |
CSS Paperfold Effect | 3,473 Kb |
Base-Style | 2,614 Kb |
CSSConf EU | 4,125 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 |
A Different Type of Gallery | DonPage | 2,950 Kb |
Table border-collapse property | Maxds | 1,672 Kb |
Modal Dialog | Gigaleet | 2,251 Kb |
Count checked checkboxes with jQuery | Mestika | 2,343 Kb |
SCSS Simple Animated Drop-In | Danwarfel | 2,175 Kb |
Cofee and sugar | Tripack | 2,094 Kb |
Css color for svg | Ademilter | 2,392 Kb |
React JS Movie Info App | MTushar | 4,870 Kb |
Banner Ad | Raquellorenzana | 4,172 Kb |
Subtle site navigation with description | Necks | 3,206 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!