Youtube Layout

Developer
Size
3,027 Kb
Views
6,072

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 Previews

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); }
});
Youtube Layout - Script Codes
Youtube Layout - Script Codes
Home Page Home
Developer Kevin Haag
Username khaag
Uploaded November 29, 2022
Rating 3
Size 3,027 Kb
Views 6,072
Do you need developer help for Youtube Layout?

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!

Kevin Haag (khaag) Script Codes
Create amazing marketing copy 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!