Skip to content

Fix wave css animation#1599

Open
Jeet-Bubna wants to merge 3 commits intopython-discord:mainfrom
Jeet-Bubna:fix-wave-css-animation
Open

Fix wave css animation#1599
Jeet-Bubna wants to merge 3 commits intopython-discord:mainfrom
Jeet-Bubna:fix-wave-css-animation

Conversation

@Jeet-Bubna
Copy link

Summary

Fixed the wave animations on the home page, reducing the CLS score to near zero. The screenshot below was taken from the local development environment. This improvement was achieved by changing the animation method from margin-based to transform-based animation.

![Wave animation after fix]image

Description of changes

  • Updated wave animation to use transform: translateX() instead of animating margin-left, preventing layout recalculation and reducing CLS.
  • Adjusted overflow attributes on the wave container to accommodate a wider set of overflow scenarios.
  • TO DO: Implement seamless infinite loop for wave width, as discussed in the original issue.

I confirm I have:

@netlify
Copy link

netlify bot commented Mar 8, 2026

Deploy Preview for pydis-static failed. Why did it fail? →

Name Link
🔨 Latest commit b70a73a
🔍 Latest deploy log https://app.netlify.com/projects/pydis-static/deploys/69acf9fa07a3e900083f0f6d

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.

1 participant