nuxt / nuxt/nuxt.com

nuxt.com homepage temporarily overflows horizontally on scroll

Open
#2,243 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
457
Forks
272
Avg merge
13h 33m
Merged PRs (30d)
23

Description

Image

On the https://nuxt.com/ homepage, the page shifts horizontally when certain animations/components load.

This becomes noticeable around or after the section:

“Deploy anywhere
Deploy with one command. SSR, static, or edge — Nuxt adapts to your platform.”

Before reaching that section, the page appears to overflow horizontally. Then, once the animations/components initialize, the layout shifts.

It looks like a carousel/slider or animated element may temporarily affect the page width during initialization.

Reproduction

  1. Open https://nuxt.com/
  2. Observe the page width/layout during initial load
  3. Scroll toward the “Deploy anywhere” section
  4. Notice a horizontal layout shift/overflow occurs as animations/components initialize

Expected behavior

The page should not overflow horizontally or shift layout during animation/component initialization.

Environment

  • Browser: Chrome

Additional context

I recorded a video demonstrating the issue, but GitHub upload is currently failing for me at the time of issue submission, so I’m unable to attach it here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue on https://nuxt.com/ in Chrome while scrolling toward the “Deploy anywhere” section. Inspect the carousel, animations, and components that initialize around that section to identify what temporarily expands the page width. Done means the homepage remains free of horizontal overflow and layout shifts during initialization.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxtjs, typescript
Domain
frontend, performance, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
66/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.