Animated responsive footer
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
- Animated responsive footer Project Folder Structure
- Animated responsive footerHTML CODE
- Animated responsive footer CSS CODE
- Live Preview of Animated responsive footer
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
<footer>
<div class="waves">
<div class="wave" id="wave1"></div>
<div class="wave" id="wave2"></div>
<div class="wave" id="wave3"></div>
<div class="wave" id="wave4"></div>
</div>
<ul class="social_icon">
<li><a href="#"><ion-icon name="logo-facebook"></ion-icon></a></li>
<li><a href="#"><ion-icon name="logo-twitter"></ion-icon></a></li>
<li><a href="#"><ion-icon name="logo-linkedin"></ion-icon></a></li>
<li><a href="#"><ion-icon name="logo-instagram"></ion-icon></a></li>
</ul>
<ul class="menu">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Team</a></li>
<li><a href="#">Contact</a></li>
</ul>
</footer>
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
CSS CODE
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
display: flex;
display-content: flex-end;
align-items: flex-end;
min-height: 100vh;
background: black;
}
footer {
position: relative;
width: 100%;
background: #3586ff;
min-height: 100px;
padding: 20px 50px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
footer .social_icon, footer .menu {
position: relative;
display: flex;
justify-content:center;
align-items:center;
margin: 10px 0;
}
footer .social_icon li, footer .menu li {
list-style: none;
}
footer .social_icon li a {
font-size: 2em;
color: #ccc;
margin: 0 10px;
display: inline-block;
transition: 0.5s;
}
footer .social_icon li a:hover {
transform: translateY(-15px);
color: blue;
}
footer .menu li a {
font-size: 1.2em;
color: #ccc;
margin: 0 10px;
display: inline-block;
transition: 0.5s;
text-decoration: none;
opacity: 0.75;
}
footer .menu li a:hover {
opacity: 1;
color: #fff;
}
p {
color : #eee;
text-align: center;
margin-top: 15px;
margin-bottom: 10px;
font-size: 1.1em;
}
/*wave and animation*/
footer .wave {
position: absolute;
top: -100px;
left: 0;
width: 100%;
height: 100px;
background: url(https://i.ibb.co/rZt4Nhg/wave.png);
background-size: 1000px 100px;
}
footer .wave#wave1 {
z-index: 1000;
opacity: 1;
bottom: 0;
animation: animateWave 4s linear infinite;
}
footer .wave#wave2 {
z-index: 999;
opacity: 0.5;
bottom: 10px;
animation: animateWave_02 4s linear infinite;
}
footer .wave#wave3 {
z-index: 1000;
opacity: 0.2;
bottom: 0;
animation: animateWave 3s linear infinite;
}
footer .wave#wave4 {
z-index: 999;
opacity: 0.7;
bottom: 20px;
animation: animateWave_02 3s linear infinite;
}
@keyframes animateWave {
0%{
background-position-x: 1000px;
}
100%{
background-position-x: 0px;
}
}
@keyframes animateWave_02 {
0%{
background-position-x: 0px;
}
100%{
background-position-x: 1000px;
}
}
Live Preview Of Animated responsive footer
See the Pen animated footer(responsive) by Codewithshobhit (@Codewithshobhit) on CodePen.
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