ccsync icon indicating copy to clipboard operation
ccsync copied to clipboard

refactor: replace Hero CSS animations with Framer Motion .

Open Hell1213 opened this issue 9 months ago • 4 comments

Replaced CSS keyframe animations in the Hero section with Framer Motion. Removed 62 lines of custom CSS including keyframes and media queries from index.css. Implemented the same color-shifting glow effect using Framer Motion's animate prop with responsive sizing via Tailwind classes. Visual appearance remains identical.

Fixes: #450

Checklist

  • [x] Ran npx prettier --write . (for formatting)
  • [ ] Ran gofmt -w . (for Go backend) - N/A (frontend only)
  • [x] Ran npm test (for JS/TS testing)
  • [x] Added unit tests, if applicable - Updated snapshot test
  • [x] Verified all tests pass - 670 tests passing
  • [ ] Updated documentation, if needed - N/A

Additional Notes This change consolidates animation logic by using the existing Framer Motion dependency instead of maintaining separate CSS animations. The glow effect behind the hero cards animates between pink and blue colors with the same timing and visual result as before.

https://github.com/user-attachments/assets/6bffc2d4-ed9f-4c25-847a-861359460920

Hell1213 avatar Feb 05 '26 19:02 Hell1213

Thank you for opening this PR!

Before a maintainer takes a look, it would be really helpful if you could walk through your changes using GitHub's review tools.

Please take a moment to:

  • Check the "Files changed" tab
  • Leave comments on any lines for functions, comments, etc. that are important, non-obvious, or may need attention
  • Clarify decisions you made or areas you might be unsure about and/or any future updates being considered.
  • Finally, submit all the comments!

More information on how to conduct a self review: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request

This helps make the review process smoother and gives us a clearer understanding of your thought process.

Once you've added your self-review, we'll continue from our side. Thank you!

github-actions[bot] avatar Feb 05 '26 19:02 github-actions[bot]

hey @its-me-abhishek pls take a look , PR is ready to review , I have implemented fix going with framer .

Hell1213 avatar Feb 05 '26 19:02 Hell1213

@Hell1213 this looks great! I think you forgot about the Homepage though. Moreover can you make this a separate component? maybe in utils, for common access, and better testing.

thanks , yeah i saw that apologies for that , I'll update the pr when its ready

Hell1213 avatar Feb 08 '26 04:02 Hell1213

@its-me-abhishek pls check now , I have made a separate component in utils for common access as requested .

Hell1213 avatar Feb 09 '26 18:02 Hell1213