Skip to content

Add support for Viewport Units #266

@Grumshow

Description

@Grumshow

On iOS Safari (iPhone 12 Pro Max) there is a bug where the animation timeline view block is incorrect, so the animation is at 100% briefly when it is coming into view.

You can see this happening at the bottom of the page on the demo page https://scroll-driven-animations.style/ if you slowly scroll down the page on iPhone.

I believe it's an incorrect number for VH being used, based on the address bar changing height to give more screen space.
Touched on with dvh etc here https://webkit.org/blog/12445/new-webkit-features-in-safari-15-4/

Strangely doesn't seem to be an issue on iPadOS, but the address bar is at the top rather than the bottom in that instance.

I'm using the non-module script tag version if that makes a difference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions