Happy Maha Shivratri Animation
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 Happy Maha Shivratri Animation
- Happy Maha Shivratri Animation HTML CODE
- Happy Maha Shivratri Animation CSS CODE
- Happy Maha Shivratri Animation Javascript CODE
- video Preview of Happy Maha Shivratri Animation
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.
Happy Maha Shivratri Animation HTML CODE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Happy Maha Shivratri Animation By CODEWITHSHOBHIT</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="Happy Maha Shivratri Background Video By SHOBHIT.mp4" >
</video>
<nav class="navbar">
<div class="container">
<a href="#" class="logo">Happy Maha Shivratri</a>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
</nav>
</body>
</html>
Happy Maha Shivratri Animation CSS CODE
*, ::before, ::after {
margin: 0;
padding: 0;
transition: .3s;
box-sizing: border-box;
color: #fff;
}
video {
position: absolute;
left: 0;
bottom: 0px;
height: 115%;
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 Happy Maha Shivratri Animation
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