Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 6 months ago

Manage landing page

accessibility, pure-css
Em3ka•320
@Em3ka
A solution to the Manage landing page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

🧠 This project was loads of fun and frustrating in some instances, but here are the highlights of what I learnt.

  • Detecting ResizeObserver overload issues early.
  • Spotting race conditions in form validation logic.
  • Recognizing when requestAnimationFrame isn't sufficient alone.
  • Separating UI state updates from expensive DOM work.
  • Applying visual classes immediately to prevent flicker.
  • Throttling layout recalculations for performance.
  • Understanding event sequencing across input, blur, and submit.
  • Avoiding shared state pitfalls by recalculating values when needed.
  • Applying requestAnimationFrame with proper timing awareness.
What challenges did you encounter, and how did you overcome them?

šŸŽžļøGlide edge case

  • I faced issues like disappearing slides, misaligned peeks, and incorrect start positions.

šŸRace condition in form validation

  • I relied on a shared currentError across input, blur, and submit, which led to inconsistent validation states.

āŒ›requestAnimationFrame timing issues

  • Using rAF delayed the application of .resizing, which led to visual glitches (e.g., nav briefly flashing). This caused a lot of headaches.

šŸŽÆ My solution: I separated the visual state change (adding .resizing) from expensive work (running syncOverlay()). I still debounced the expensive work, but the visual state is applied immediately, preventing flicker.

What specific areas of your project would you like help with?

All constructive feedback is welcome. 😁

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Em3ka's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
Ā© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License