AMG Animated Landing Page
Hey there, You are most welcome to this article. I hope you will enjoy this article. If you like this article then please share this article with your friends and colleagues. If you have any questions or suggestions regarding this article then please comment down below.
๐Table Of Content
- Project Folder Structure Of AMG Animated Landing Page
- HTML CODE AMG Animated Landing Page
- CSS CODE AMG Animated Landing Page
- Video Preview Of AMG Animated Landing Page
Project Folder Structure:
- Create a file called index.html to serve as the main file.
- Create a file called style.css for the CSS code.
- Create a file called script.js for the JavaScript code.
HTML CODE Of AMG Animated Landing Page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AMG Animated Landing Page</title>
<!-- CSS File -->
<link rel="stylesheet" href="styles.css">
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
</head>
<body>
<video autoplay loop muted>
<source src="car.mp4" >
</video>
<nav class="navbar">
<div class="container">
<a href="#" class="logo">AMG</a>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">Plans</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
</nav>
</body>
</html>
CSS CODE AMG Animated Landing Page
/* Font Family */
@font-face {
font-family: 'Keshiki';
src: url("font-family/Keshiki/Sdasian-WyDon.ttf");
}
@font-face {
font-family: 'sd-asian';
src: url("font-family/SD-Asian/Sdasian-WyDon.ttf");
}
@font-face {
font-family: 'Poppins';
src: url("font-family/Poppins/Poppins-Medium.ttf");
}
*, ::before, ::after {
margin: 0;
padding: 0;
transition: .3s;
box-sizing: border-box;
color: #fff;
}
video {
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 100%;
object-fit: cover;
pointer-events: none;
z-index: -1;
transition: 1s;
}
.container {
max-width: 100%;
padding: 0 20px;
margin: auto;
}
.navbar {
padding: 12px 10px;
}
.navbar .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.navbar .logo {
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
text-decoration: none;
font-size: 2rem;
}
.navbar ul {
list-style-type: none;
display: flex;
}
.navbar ul a {
display: block;
text-decoration: none;
margin: 0 10px;
padding: 8px 16px;
font-family: 'Trebuchet MS';
position: relative;
}
/* Media Queries for responsiveness */
@media screen and (max-width: 768px) {
.navbar .container {
flex-direction: column;
text-align: center;
}
.navbar ul {
margin-top: 10px;
}
.navbar ul a {
margin: 10px 0;
}
}
video Preview Of AMG Animated Landing Page
How to run this Html Css and Js Project in Our Browser?
first, you need a code editor either you can use VS code studio or notepad and then copy the html,css, and javascript code, create separate or different files for coding then combine them, after creating file just click .html file or run from VS Code studio and you can project preview.
Which Code Editor do you use to create those projects?
I am using VS Code Studio.
is this project responsive or not?
Yes! this project is a responsive project.
If you enjoyed reading this post and have found it useful for you, then please give share it with your friends, and follow me to get updates on my upcoming posts. You can connect with me on Instagram
if you have any confusion Comment below or you can contact us by filling out our Contact Us form from the home section. ๐ค๐

No comments:
Post a Comment