Maclaren 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 Maclaren Animated Landing Page
- Maclaren Animated Landing Page HTML CODE
- Maclaren Animated Landing Page CSS CODE
- Video Preview of Maclaren 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.
Maclaren Animated Landing Page HTML CODE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Maclaren Animated Landing Page</title>
<!-- CSS File -->
<link rel="stylesheet" href="styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Kode+Mono:wght@400..700&family=Orbitron:wght@400..900&display=swap" rel="stylesheet">
<!-- 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="Maclaren.mp4" >
</video>
<nav class="navbar">
<div class="container">
<a href="#" class="logo">Codewithshobhit</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>
<main class="container">
<div class="page-content">
<div class="inner-content">
<h1 class="heading">Maclaren</h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Maiores ullam, aliquid in vel quo eius possimus magni quibusdam ex perferendis, natus suscipit voluptas, debitis unde vitae omnis saepe ratione ea?</p>
<div class="buttons">
<a href="#" class="active">Learn more</a>
<a href="#">Browse</a>
</div>
<div class="social-links">
<a href="#" class="bi bi-facebook" ></a>
<a href="#" class="bi bi-youtube" ></a>
<a href="#" class="bi bi-instagram" ></a>
<a href="#" class="bi bi-linkedin" ></a>
</div>
</div>
</div>
</main>
</body>
</html>
Maclaren Animated Landing Page CSS CODE
*, ::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: 950px;
margin: auto;
}
.navbar {
padding: 12px 10px;
}
.navbar .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.navbar .logo {
font-family: "Orbitron", 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: "Orbitron", sans-serif;
position: relative;
}
.navbar ul:has(a:hover) a:not(:hover) {
filter: blur(10px);
}
.page-content {
text-align: center;
margin-top: 12rem;
padding: 0 10px;
}
.page-content .inner-content .heading {
font-size: 10rem;
font-family: "Orbitron", sans-serif;
}
.page-content .inner-content p {
font-family: "Orbitron", sans-serif;
}
.page-content .buttons {
display: flex;
justify-content: center;
margin-top: 20px;
}
.page-content .buttons a {
display: block;
font-family: "Orbitron", sans-serif;
text-decoration: none;
margin: 0 16px;
padding: 10px 12px;
border-radius: 6px;
font-size: 13px;
min-width: 100px;
text-align: center;
position: relative;
backdrop-filter: blur(60px);
overflow: hidden;
z-index: 1;
border: 1px solid #ffffff1e;
}
.page-content .buttons a.active {
background-color: #e1340d;
}
.page-content .buttons a.active:hover {
box-shadow: 0 0 40px rgb(253, 2, 2);
}
.page-content .buttons a:nth-child(2)::before {
content: '';
position: absolute;
left: -100%;
top: 0;
width: 100%;
height: 100%;
background: linear-gradient(40deg, #ffffff00, #ffffff20, #ffffff00);
z-index: -1;
}
.page-content .buttons a:nth-child(2):hover::before {
left: 100%;
}
.page-content .buttons a:nth-child(2):hover {
transition-delay: .3s;
box-shadow: 0 0 40px rgb(238, 5, 5);
background-color: #ff310c;
}
.page-content .social-links {
margin-top: 6rem;
display: flex;
justify-content: center;
}
.page-content .social-links a {
display: block;
height: 40px;
width: 40px;
margin: 0 10px;
border-radius: 99px;
display: flex;
justify-content: center;
align-items: center;
text-decoration: none;
backdrop-filter: blur(160px);
background: #c624f71e;
overflow: hidden;
position: relative;
z-index: 1;
}
.page-content .social-links a::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 0%;
background: #f15405;
z-index: -1;
}
.page-content .social-links a:hover::after {
height: 100%;
}
Video Preview of Maclaren 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