Skip to content

Conversation

@jumski
Copy link
Contributor

@jumski jumski commented Nov 9, 2025

Performance Optimization for Website Animations and Effects

This PR improves website performance by optimizing animations and visual effects across multiple components:

  • Simplified text shadows and reduced shadow complexity for better rendering performance

  • Replaced continuous animations with static effects where appropriate

  • Optimized the CodeOverlay component by:

    • Reducing transition time from 0.3s to 0.2s
    • Replacing complex custom scroll animation with native smooth scrolling
    • Removing unnecessary animation keyframes
    • Simplifying hover effects while maintaining visual appeal
  • Enhanced TestimonialCarousel performance with:

    • GPU acceleration via will-change and transform: translateZ(0)
    • Using translate3d for smoother animations
    • Simplified gradients and shadows
    • Added proper support for users who prefer reduced motion
  • Improved homepage CTA cards by:

    • Reducing shadow complexity
    • Removing continuous shine animation
    • Adding subtle transform on hover instead

These changes maintain the site's visual appeal while significantly reducing CPU/GPU load, especially on mobile devices and lower-powered systems.

@changeset-bot
Copy link

changeset-bot bot commented Nov 9, 2025

⚠️ No Changeset found

Latest commit: c61e473

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor Author

jumski commented Nov 9, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge:queue - adds this PR to the back of the merge queue
  • hotfix:queue - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@nx-cloud
Copy link

nx-cloud bot commented Nov 9, 2025

View your CI Pipeline Execution ↗ for commit c61e473

Command Status Duration Result
nx affected -t build --configuration=production... ✅ Succeeded 25s View ↗
nx affected -t lint typecheck test --parallel -... ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2025-11-10 23:15:26 UTC

@nx-cloud
Copy link

nx-cloud bot commented Nov 9, 2025

View your CI Pipeline Execution ↗ for commit 04ad912

Command Status Duration Result
nx affected -t lint typecheck test --parallel -... ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2025-11-09 15:03:15 UTC

@jumski jumski force-pushed the Optimize_website_animations_for_better_performance branch from 04ad912 to c61e473 Compare November 10, 2025 23:13
@jumski jumski marked this pull request as ready for review November 10, 2025 23:13
@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 10, 2025

Merge activity

  • Nov 10, 11:13 PM UTC: jumski added this pull request to the Graphite merge queue.
  • Nov 10, 11:13 PM UTC: CI is running for this pull request on a draft pull request (#343) due to your merge queue CI optimization settings.
  • Nov 10, 11:14 PM UTC: Merged by the Graphite merge queue via draft PR: #343.

graphite-app bot pushed a commit that referenced this pull request Nov 10, 2025
…nce (#331)

# Performance Optimization for Website Animations and Effects

This PR improves website performance by optimizing animations and visual effects across multiple components:

- Simplified text shadows and reduced shadow complexity for better rendering performance
- Replaced continuous animations with static effects where appropriate
- Optimized the CodeOverlay component by:
  - Reducing transition time from 0.3s to 0.2s
  - Replacing complex custom scroll animation with native smooth scrolling
  - Removing unnecessary animation keyframes
  - Simplifying hover effects while maintaining visual appeal

- Enhanced TestimonialCarousel performance with:
  - GPU acceleration via `will-change` and `transform: translateZ(0)`
  - Using `translate3d` for smoother animations
  - Simplified gradients and shadows
  - Added proper support for users who prefer reduced motion

- Improved homepage CTA cards by:
  - Reducing shadow complexity
  - Removing continuous shine animation
  - Adding subtle transform on hover instead

These changes maintain the site's visual appeal while significantly reducing CPU/GPU load, especially on mobile devices and lower-powered systems.
@graphite-app graphite-app bot closed this Nov 10, 2025
Comment on lines +35 to +39
scrollable.addEventListener('wheel', (e) => {
console.log('SlowScroll: wheel event captured');
e.preventDefault();
e.stopPropagation();

Copy link
Contributor

Choose a reason for hiding this comment

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

The preventDefault() and stopPropagation() calls on wheel events contradict the PR's stated goal of "replacing complex custom scroll animation with native smooth scrolling." This implementation actually disables native scrolling behavior completely, which can cause accessibility issues for users with assistive technologies or non-standard input devices.

Consider either:

  1. Removing this entire SlowScroll component if native scrolling is the intended approach
  2. Making this behavior optional with a preference setting
  3. Using CSS scroll-behavior: smooth instead for a standards-compliant approach

This custom scroll implementation also lacks touch event handling, which would break scrolling on mobile devices.

Suggested change
scrollable.addEventListener('wheel', (e) => {
console.log('SlowScroll: wheel event captured');
e.preventDefault();
e.stopPropagation();
scrollable.style.scrollBehavior = 'smooth';
// Native smooth scrolling is now enabled via CSS
// This preserves accessibility and works on all devices

Spotted by Graphite Agent

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

@github-actions
Copy link
Contributor

🔍 Preview Deployment: Website

Deployment successful!

🔗 Preview URL: https://pr-331.pgflow.pages.dev

📝 Details:

  • Branch: Optimize_website_animations_for_better_performance
  • Commit: 3e0377bd395802f82832d243c32c2f6451460491
  • View Logs

_Last updated: _

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.

2 participants