Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Fixed elements jitter on iOS scroll: how to find and fix it

PRF-184Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

A fixed element is something that stays in place on screen while the page scrolls: a sticky header, a bottom call-to-action bar, a chat bubble or a cookie banner. On iPhone, Safari shows and hides its address bar and bottom toolbar as you scroll. That changes the visible area (the viewport) mid-scroll.

When the viewport changes, fixed elements can shake, jump a few pixels, flicker, or briefly leave a gap. The page still works. It just feels unstable.

Why it costs you leads or sales

The direct impact is usually low. Visitors can still read and tap. But a shaking header or bar makes a site feel cheap or broken, and that hurts trust on a form or checkout page. It also makes mis-taps more likely when a button moves just as someone taps it.

How a jitter turns into a lost tap
  1. Visitor scrollsSwipes up on an iPhone
  2. Toolbar resizesSafari hides the address bar
  3. Fixed bar shakesLayout shifts by a few pixels
  4. Tap missesButton moves under the thumb

The break happens when the browser toolbars resize during scroll.

How to check if your site has it

This is a visual, device-specific problem. Check it by hand on a real iPhone.

Check on a real iPhone
  1. Open the page in Safari

    Use a long page with your fixed header, bar or chat button visible. Test on a recent iOS version and, if you can, an older one.

  2. Scroll slowly, then fast

    Watch the fixed element as the address bar collapses and comes back. Look for shaking, jumps, flicker or gaps.

  3. Scroll to the very top and bottom

    Pull past the edges (rubber-band scrolling). Fixed elements often wobble here.

  4. Test other browsers and modes

    Try Chrome on iOS, landscape orientation, and with the keyboard open on a form page.

  5. Use Safari Web Inspector if you have a Mac

    Connect the iPhone by cable, enable Web Inspector in Safari's Advanced settings, and inspect the element's computed height and position while scrolling.

How to fix it

The common causes are: 100vh heights that do not match the visible area, scroll-linked JavaScript that moves the element, animations on properties that force re-layout, and fixed elements inside a parent with a transform. Work through the steps below.

Stop the jitter
  1. Replace 100vh with dynamic units

    100vh on iOS equals the tallest viewport, so full-height elements jump when the toolbar changes. Use 100dvh, with 100vh as a fallback for older browsers.

  2. Put the fixed element on its own layer

    Add transform: translateZ(0) (or will-change: transform) to the fixed element so Safari paints it separately. Use it only on the elements that need it.

  3. Remove scroll-event positioning

    If JavaScript changes top, bottom or height of the element on scroll, replace it with position: sticky or CSS only. If you must hide on scroll, animate transform, not top.

  4. Check parents for transform, filter or overflow

    A position: fixed child inside a parent with transform, filter or perspective stops being fixed to the screen. Move the fixed element outside that parent, for example directly under body.

  5. Handle the bottom safe area

    Add padding-bottom: env(safe-area-inset-bottom) to bottom bars and make sure the viewport meta tag includes viewport-fit=cover if you use it.

  6. Avoid sticky inside overflow containers

    position: sticky fails if an ancestor has overflow: hidden, auto or scroll. Use overflow: clip on the ancestor or remove the overflow rule.

Stable fixed header and bottom barcss
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateZ(0);
  will-change: transform;
}

.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateZ(0);
}

.full-height-section {
  min-height: 100vh; /* fallback */
  min-height: 100dvh;
}
Where to apply the CSS
  1. Add the CSS

    Go to Appearance > Customize > Additional CSS (or your child theme's stylesheet) and paste the rules, changing the class names to match your theme's header and bar.

  2. Check plugins

    Sticky header, popup and chat plugins often add their own scroll JavaScript. Turn off their 'hide on scroll' or 'shrink on scroll' option and retest.

Scroll-driven positioning vs CSS

Jittery

  • Header moved by a scroll listener
  • Hero uses height: 100vh
  • Bar sits inside a transformed parent

Stable

  • Header uses position: fixed or sticky in CSS
  • Hero uses min-height: 100dvh
  • Bar sits directly under body with safe-area padding

How to confirm it's fixed

Retest on a real iPhone
  • Scroll slowly and quickly: the header and bar stay still
  • No gap appears when the address bar hides or returns
  • Rubber-band scrolling at top and bottom looks calm
  • Bottom bar clears the home indicator
  • Works in Safari and Chrome on iOS
  • Works in portrait and landscape
  • Form fields and the keyboard do not push the bar out of place

How to prevent it happening again

Add a real iPhone to your release checks for any change to headers, popups, chat widgets or sticky bars. Keep fixed elements simple and CSS-driven. Review new plugins or scripts that add scroll effects before they go live.

Common causes and the matching fix
CauseSymptomFix
height: 100vhSection or bar jumps as toolbar changesUse 100dvh with a 100vh fallback
Scroll listener sets top/bottomElement lags or shakesUse CSS sticky or animate transform
Transformed parentFixed element scrolls with the pageMove it outside the parent
Overflow on ancestorSticky does nothingRemove overflow or use overflow: clip
No safe-area paddingBar overlaps home indicatorAdd env(safe-area-inset-bottom)

How FunnelGuard handles this

This is outside what FunnelGuard checks. Jitter is a visual, real-device effect that depends on how Safari draws the page while a person scrolls, and FunnelGuard does not measure that. A tool that fits is real-device testing or visual QA: a cloud service that runs your pages on physical iPhones, or a manual check on your own phone.

What FunnelGuard does cover is the funnel itself: a robot visitor runs your lead forms, checkouts and booking or chat buttons on a schedule and checks each step, tracking hits and test leads. A free plan is available, and a free read-only website audit too.

Frequently asked questions

Questions people ask

Why does my sticky header jump when I scroll on iPhone?

Safari hides and shows its address bar as you scroll, which changes the viewport height. If your header or layout relies on 100vh, scroll JavaScript or a transformed parent, it can shift by a few pixels. Use CSS positioning, 100dvh and a separate compositing layer to steady it.

How do I fix position fixed not working on iOS Safari?

Check that no parent has transform, filter or perspective, because that makes the fixed element relative to the parent instead of the screen. Move the element directly under body. Also remove scroll scripts that change its position.

What is the difference between 100vh and 100dvh on iPhone?

100vh uses the largest possible viewport, as if the toolbars were hidden, so content can be taller than the visible area. 100dvh updates as the toolbars show and hide, so it matches what the visitor sees. Use 100dvh with a 100vh fallback.

Why is position sticky not working on iOS?

The most common cause is an ancestor with overflow set to hidden, auto or scroll, which blocks sticky. Another is a missing top value. Remove the overflow rule, use overflow: clip, and set top: 0.

Does translateZ(0) fix fixed element flicker in Safari?

Often yes. It promotes the element to its own layer so Safari repaints it less during scroll. Use it only on the few elements that flicker, since too many layers can use extra memory.

How do I test iOS scroll jitter without an iPhone?

Desktop emulators do not copy Safari's toolbar behaviour, so they can miss it. The most reliable option is a real iPhone or a cloud service with real devices. Xcode's iOS Simulator on a Mac is a closer option than browser dev tools.

Can a jittering fixed bar hurt conversions?

It can, though usually modestly. A moving button can cause missed taps and make the page feel untrustworthy on forms and checkouts. Fixing it is a low-cost polish step.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.