Youtube Layout
How do I make an youtube layout?
What is a youtube layout? How do you make a youtube layout? This script and codes were developed by Kevin Haag on 29 November 2022, Tuesday.
Youtube Layout - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Youtube Layout</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="flex-wrapper"> <div class="container"> <div class="video-banner"> <div class="video"> <style>.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }</style><div class='embed-container'><iframe src='https://www.youtube.com/embed/V2zZQv2AXTk' frameborder='0' allowfullscreen></iframe></div> </div> </div> <div class="lessons"> Lessons List </div> <div class="text"> Class Content </div>
</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>
Youtube Layout - Script Codes CSS Codes
html, body { height: 100%; margin: 0; padding: 0;
}
.flash { width: 100%; height: 100%; position: fixed; top: 0; left: 0; background-color: #000; z-index: 9999;
}
.container { width: 88.42%; margin-left: 11.58%; overflow: hidden;
}
.video-banner, .text, .lessons { box-sizing: border-box;
}
.video-banner { width: 56.78%; float: left; background-color: #000; transition: all 0.2s ease-in-out;
}
.video-banner .video { width: 100%; height: 100%;
}
.text { width: 56.78%; padding-right: 4.45%; float: left;
}
.lessons { width: 43.22%; min-height: 100vh; float: right; padding-right: 11.58%; padding-left: 4.45%; background-color: #F9F9F9; transition: all 0.2s ease-in-out;
}
.flex-wrapper { display: flex;
}
.flex-wrapper::before, .flex-wrapper::after { content: ''; display: block; flex: 1; background-color: red;
}
.flex-wrapper::before { background-color: white;
}
.flex-wrapper::after { background-color: #F9F9F9;
}
.flex-wrapper .container { max-width: 1600px; margin: 0 auto;
}
.theater { width: 100%; max-width: 100% !important; margin-left: 0; overflow: visible;
}
.theater .video-banner { width: 100vw; position: relative; left: 50%; transform: translateX(-50%);
}
.theater .video-banner .video { width: 76.84%; margin: 0 auto;
}
.theater .text { padding-left: 11.58%;
}
.theater .lessons { height: auto;
}
Youtube Layout - Script Codes JS Codes
$(document).keyup(function(e) { if(e.which == 84) { $('body').prepend('<div class="flash"></div>'); $('.container').toggleClass('theater'); setTimeout(function(){ $('.flash').fadeOut(); }, 150); }
});
Developer | Kevin Haag |
Username | khaag |
Uploaded | November 29, 2022 |
Rating | 3 |
Size | 3,027 Kb |
Views | 6,072 |
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 |
Scroll Icon | 1,988 Kb |
Hostwise Nav Bar | 3,207 Kb |
Hamburger Icon Toggle | 2,073 Kb |
SVG Fuel Gauge | 2,758 Kb |
Vertical Centering | 1,487 Kb |
A Pen by Kevin Haag | 4,352 Kb |
Modal Popup Window | 2,433 Kb |
Animated Search Icon | 2,092 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 |
Nice responsive team page | Infomiho | 3,139 Kb |
Twitch Live Channels | Inkblotty | 4,956 Kb |
Wave Lines | Mikehobizal | 4,023 Kb |
Draggables in pure angular | Rlo206 | 5,167 Kb |
A Pen by Bryan | Brydave | 2,286 Kb |
Sample Profile Screen | OurDailyBread | 5,375 Kb |
Brown by pure CSS, no image, no javascript | Aaronchuo | 2,652 Kb |
Slider css only | Armandobau | 2,161 Kb |
Fading gradient button | Insprd | 1,713 Kb |
A simple log in form made with css | Mayurelbhar | 2,160 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!