applander-pro / script.js
x1232's picture
Create an app landing page with hero section showing app screenshots, key features with icons, how it works steps, pricing plans, user testimonials, app store download buttons, video demo, and early access signup.
bde7409 verified
Raw History Blame Contribute Delete
1.06 kB
// Simple animation for feature cards on scroll
document.addEventListener('DOMContentLoaded', function() {
const featureCards = document.querySelectorAll('.features-grid > div');
featureCards.forEach((card, index) => {
// Add staggered delay for animation
card.style.transitionDelay = `${index * 0.1}s`;
});
// Simple form submission for early access
const earlyAccessForm = document.querySelector('section.py-20.bg-gradient-to-r form');
if (earlyAccessForm) {
earlyAccessForm.addEventListener('submit', function(e) {
e.preventDefault();
const emailInput = this.querySelector('input[type="email"]');
if (emailInput.value && emailInput.checkValidity()) {
// In a real app, you would send this to your backend
alert('Thank you! You\'ve been added to our early access list.');
emailInput.value = '';
} else {
alert('Please enter a valid email address.');
}
});
}
});