Skip to content

Clarify nature of transform in -group pseudo elements #235

@mattgperry

Description

@mattgperry

The docs state, on ::view-transition-group(*)

Also the element’s transform is animated from the old element’s screen space transform to the new element’s screen space transform.

When inspecting the generated element's CSSAnimation, these keyframes return as matrix(...identity, oldScreenX, oldScreenY) and none. Replacing this animation with a WAAPI animation with the same keyframes produces the expected animation of the layer animating from oldScreenX/Y to 0,0, the top left of the screen (none).

Is there then something additional at play that isn't mentioned in the spec? I would expect none to be an explicit value like the first keyframe, or for it to behave correctly when replacing the animation with the equivalent WAAPI animation.

Edit:

This code is enough to break the animation

effect.setKeyframes(effect.getKeyframes())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions