Skip to content

Conversation

awasthi108
Copy link

@awasthi108 awasthi108 commented May 1, 2025

Video Demo Spotlight Effect Enhancement

Description

Added an immersive spotlight effect to the video demo section that dims surrounding content when the video comes into view, creating a more focused and engaging user experience.

Features

  • Automatic dimming of surrounding content when video is in view
  • Smooth transitions for both dimming and undimming
  • Maintains all existing functionality and accessibility
  • Zero interference with user interactions
  • Proper cleanup of event listeners and classes
  • Performance optimized with minimal DOM updates

Implementation Details

  • Uses Framer Motion for smooth animations
  • Implements IntersectionObserver through react-intersection-observer
  • Adds minimal CSS changes through existing styling system
  • Maintains existing theme compatibility
  • Zero additional dependencies required

Testing Done

  • Tested scroll behavior
  • Verified smooth transitions
  • Confirmed no interference with other interactions
  • Checked performance impact (minimal)
  • Verified cleanup on unmount
  • Tested across different viewport sizes
  • Verified theme compatibility (light/dark modes)

Screenshots/GIFs

[It would be good to add screenshots or GIFs showing the effect in action]

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • My changes maintain existing functionality
  • I have tested my changes thoroughly
  • My changes are responsive and work across different screen sizes

Additional Notes

This enhancement aims to improve the user experience when viewing the project demo video without compromising on performance or accessibility. The implementation is lightweight and maintains all existing functionality while adding an engaging visual effect.

rohitdasu and others added 7 commits April 23, 2024 16:11
This commit adds a minimal, non-intrusive mouse tracker dot that follows
the cursor across all pages. The component:
- Is globally available across all pages
- Uses theme colors and respects dark/light modes
- Doesn't interfere with user interactions
- Cleans up event listeners properly
- Is accessible and performance-optimized
This commit adds an immersive spotlight effect to the video demo section:
- Dims the surrounding content when video is in view
- Smooth transitions for better user experience
- Maintains accessibility and performance
- No interference with user interactions
- Proper cleanup on unmount

The feature enhances the demo video viewing experience by:
- Drawing focus to the video content
- Creating a theater-like experience
- Using non-intrusive animations
- Preserving all existing functionality
Copy link

vercel bot commented May 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
projectmate ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 1, 2025 6:32pm

@rohitdasu
Copy link
Owner

hi @awasthi108, could you attach any screenshot here in the PR description? thanks.

@awasthi108
Copy link
Author

Here’s the spotlight effect in action:

Before: Video section appears normally, no spotlight effect.
image

And

After : Surrounding content dims when video is in view, spotlight effect highlights the video.
image

Tested in both light and dark themes, transitions are smooth, and performance impact is minimal.

@rohitdasu
Copy link
Owner

Now i see, cool feature. Could you please resolve conflicts?

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