Footer Section
Preview
Edit
Download
Run
Download Options
HTML File
Download as .html file
CSS File
Download as .css file
JavaScript File
Download as .js file
Combined HTML
All code in one HTML file
Project ZIP
All files in a ZIP archive
Cancel
HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Album Footer</title> </head> <body> <main> <!-- Your main content here --> <h1 style="text-align: center; margin: 50px 0;">Website Content</h1> </main> <footer class="footer"> <!-- Album disc elements --> <div class="album-disc disc-1"></div> <div class="album-disc disc-2"></div> <!-- Album cover elements --> <div class="album-cover cover-1"></div> <div class="album-cover cover-2"></div> <div class="footer-container"> <div class="footer-column"> <h3>About Us</h3> <p>We're a creative team passionate about delivering amazing experiences through our work.</p> <div class="social-links"> <a href="#"><i class="fab fa-facebook-f"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> <a href="#"><i class="fab fa-instagram"></i></a> <a href="#"><i class="fab fa-linkedin-in"></i></a> </div> </div> <div class="footer-column"> <h3>Quick Links</h3> <ul class="footer-links"> <li><a href="#">Home</a></li> <li><a href="#">Services</a></li> <li><a href="#">Portfolio</a></li> <li><a href="#">Testimonials</a></li> <li><a href="#">Contact</a></li> </ul> </div> <div class="footer-column"> <h3>Services</h3> <ul class="footer-links"> <li><a href="#">Web Design</a></li> <li><a href="#">Development</a></li> <li><a href="#">Branding</a></li> <li><a href="#">Marketing</a></li> <li><a href="#">Consulting</a></li> </ul> </div> <div class="footer-column"> <h3>Newsletter</h3> <p>Subscribe to our newsletter for the latest updates and offers.</p> <form class="newsletter-form"> <input type="email" placeholder="Your email address" required> <button type="submit">Subscribe</button> </form> </div> </div> <div class="footer-bottom"> <p>© 2023 Creative Studio. All rights reserved.</p> </div> </footer> <!-- Font Awesome for icons --> <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script> </body> </html>
CSS
:root { --primary-yellow: #FFD700; --dark-yellow: #FFC000; --light-yellow: #FFF2A8; --shadow: rgba(0, 0, 0, 0.2); } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Arial', sans-serif; } body { background-color: #f9f9f9; min-height: 100vh; display: flex; flex-direction: column; } main { flex: 1; padding: 20px; } .footer { background: linear-gradient(135deg, var(--dark-yellow), var(--primary-yellow)); color: #333; padding: 60px 0 30px; position: relative; overflow: hidden; } .footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.8) 20%, rgba(255,255,255,0.8) 80%, transparent 100%); animation: shine 3s infinite; } @keyframes shine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } .footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; } .footer-column { position: relative; z-index: 1; } .footer-column h3 { font-size: 1.5rem; margin-bottom: 25px; position: relative; display: inline-block; } .footer-column h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 50px; height: 3px; background: #333; border-radius: 3px; } .footer-column p { margin-bottom: 20px; line-height: 1.6; } .footer-links { list-style: none; } .footer-links li { margin-bottom: 15px; position: relative; padding-left: 20px; transition: all 0.3s ease; } .footer-links li::before { content: '→'; position: absolute; left: 0; color: #333; transition: all 0.3s ease; } .footer-links li:hover { transform: translateX(10px); } .footer-links li:hover::before { color: white; } .footer-links a { color: #333; text-decoration: none; transition: color 0.3s ease; } .footer-links a:hover { color: white; } .social-links { display: flex; gap: 15px; margin-top: 20px; } .social-links a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); color: #333; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.3s ease; position: relative; overflow: hidden; } .social-links a::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: all 0.5s ease; } .social-links a:hover { background: rgba(255, 255, 255, 0.5); transform: translateY(-5px); } .social-links a:hover::before { left: 100%; } .newsletter-form { display: flex; margin-top: 20px; } .newsletter-form input { flex: 1; padding: 12px; border: none; border-radius: 4px 0 0 4px; outline: none; } .newsletter-form button { padding: 0 20px; background: #333; color: white; border: none; border-radius: 0 4px 4px 0; cursor: pointer; transition: all 0.3s ease; } .newsletter-form button:hover { background: #222; } .footer-bottom { text-align: center; padding-top: 40px; margin-top: 40px; border-top: 1px solid rgba(0, 0, 0, 0.1); position: relative; } .footer-bottom::before { content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 100px; height: 20px; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M0,10 Q25,20 50,10 T100,10" fill="none" stroke="%23333" stroke-width="2"/></svg>') no-repeat; background-size: contain; } .album-disc { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, #333 30%, transparent 31%), repeating-conic-gradient(#333 0% 5%, transparent 5% 10%); animation: spin 20s linear infinite; opacity: 0.1; z-index: 0; } .disc-1 { top: 10%; right: 5%; } .disc-2 { bottom: 10%; left: 5%; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Album cover elements */ .album-cover { position: absolute; width: 120px; height: 120px; background: var(--light-yellow); border: 8px solid white; box-shadow: 0 5px 15px var(--shadow); transform-origin: bottom right; transition: all 0.5s ease; z-index: 0; } .cover-1 { top: 15%; left: 5%; transform: rotate(-15deg); } .cover-2 { bottom: 15%; right: 5%; transform: rotate(10deg); } .footer:hover .cover-1 { transform: rotate(-5deg) translateY(-10px); } .footer:hover .cover-2 { transform: rotate(15deg) translateY(-10px); } /* Responsive styles */ @media (max-width: 768px) { .footer-container { grid-template-columns: 1fr; gap: 30px; } .footer-column h3 { font-size: 1.3rem; } .album-disc { width: 100px; height: 100px; } .album-cover { width: 80px; height: 80px; } } @media (max-width: 480px) { .footer { padding: 40px 0 20px; } .newsletter-form { flex-direction: column; } .newsletter-form input { border-radius: 4px; margin-bottom: 10px; } .newsletter-form button { border-radius: 4px; padding: 12px; } .album-disc { width: 70px; height: 70px; } .album-cover { width: 60px; height: 60px; border-width: 5px; } }
JavaScript
// Additional animation for the footer on scroll document.addEventListener('DOMContentLoaded', function() { const footer = document.querySelector('.footer'); function animateFooter() { const scrollPosition = window.scrollY; const windowHeight = window.innerHeight; const documentHeight = document.body.clientHeight; // When user is near the bottom of the page if (scrollPosition + windowHeight > documentHeight - 100) { footer.style.transform = 'translateY(0)'; } else { footer.style.transform = 'translateY(20px)'; } } // Initial check animateFooter(); // Check on scroll window.addEventListener('scroll', animateFooter); // Add ripple effect to social links const socialLinks = document.querySelectorAll('.social-links a'); socialLinks.forEach(link => { link.addEventListener('click', function(e) { e.preventDefault(); const ripple = document.createElement('span'); ripple.classList.add('ripple'); this.appendChild(ripple); setTimeout(() => { ripple.remove(); }, 1000); }); }); });
Output Preview
Desktop
Mobile
Fullscreen