Skip to content

Add AOS scroll animations to enhance user experience#1044

Merged
adityai0 merged 1 commit intoopensource-society:masterfrom
adityashirsatrao007:feature/aos-scroll-animations
Jan 7, 2026
Merged

Add AOS scroll animations to enhance user experience#1044
adityai0 merged 1 commit intoopensource-society:masterfrom
adityashirsatrao007:feature/aos-scroll-animations

Conversation

@adityashirsatrao007
Copy link
Copy Markdown
Contributor

Description

This PR implements smooth scroll animations using the AOS (Animate On Scroll) library to make the website more modern and visually appealing.

Changes Made

  • ✨ Integrated AOS library via CDN (lightweight, no dependencies)
  • 🎨 Added fade-up animations to hero section with staggered delays
  • 📦 Applied scroll animations to all 7 feature cards with sequential timing
  • 🎯 Animated section titles and feedback form for smooth transitions
  • ⚙️ Configured AOS with optimized settings:
    • Duration: 800ms for smooth transitions
    • Easing: ease-in-out for natural movement
    • Once: true to prevent re-animation on scroll up (better performance)
    • Offset: 100px to trigger animations at the right moment

Why AOS?

  • Lightweight (~3KB gzipped)
  • No jQuery dependency
  • Easy to implement with data attributes
  • Widely used and well-maintained
  • Great browser support

Testing

Tested on:

  • Chrome (latest)
  • Firefox (latest)
  • Edge (latest)
  • Mobile responsive view

Screenshots/Demo

The animations provide a modern, professional feel to the landing page while maintaining excellent performance.

Closes #1041

- Integrated AOS (Animate On Scroll) library via CDN
- Added fade-up animations to hero section with staggered delays
- Applied scroll animations to all feature cards with sequential timing
- Animated section titles and feedback form for smooth transitions
- Configured AOS with 800ms duration and ease-in-out easing
- Set animations to trigger once for better performance

This makes the landing page feel more modern and engaging while
maintaining smooth performance across devices.
Copilot AI review requested due to automatic review settings December 8, 2025 04:14
Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting your first pull request to the Open Source Society project — we really appreciate your contribution! Our maintainers will review your PR soon. In the meantime, make sure you've followed the contribution checklist and linked any relevant issues. Welcome aboard, and keep contributing! 💚

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR integrates the AOS (Animate On Scroll) library to add smooth scroll animations throughout the landing page, enhancing the visual experience with fade-up effects and staggered timing.

  • Added AOS library v2.3.1 via CDN with optimized configuration (800ms duration, ease-in-out easing, once: true for performance)
  • Applied fade-up animations to hero section elements (hero-content and search-card) with 200ms delay between them
  • Added sequential scroll animations to all 7 feature cards and section titles with varying delays

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pages/index.html
duration: 800,
easing: 'ease-in-out',
once: true,
offset: 100
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing accessibility consideration: The AOS animations don't respect users' prefers-reduced-motion preference. Consider adding disable: 'mobile' or disable: window.matchMedia('(prefers-reduced-motion: reduce)') to the AOS.init() configuration to ensure the animations are disabled for users who have requested reduced motion for accessibility reasons.

Suggested change
offset: 100
offset: 100,
disable: function() {
return window.matchMedia('(prefers-reduced-motion: reduce)').matches;
}

Copilot uses AI. Check for mistakes.
Comment thread pages/index.html
@@ -136,7 +139,7 @@ <h3>Collaborative Discussions</h3>
</div>

<!-- Feature 6 -->
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect comment: This is labeled as "Feature 6" but it's actually the 7th feature card. This should be "Feature 7" to maintain accurate numbering.

Suggested change
<!-- Feature 6 -->
<!-- Feature 7 -->

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@adityai0 adityai0 merged commit 11d2ac5 into opensource-society:master Jan 7, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GGSoC] [AOS Animation] <Integrating animations that make the website look more modern and attractive>

3 participants