Skip to content

Perspective distortion for Skottie animations #3295

@velykovits

Description

@velykovits

Description

In version 2.2.3 I cannot make the perspective distortion work when I add a perspective flag in a transform array to a Skottie animation. I assume it is not supported currently.

<Canvas style={{flex: 1}}>
    <Group transform={[
            {translateX: 75},
            {translateY: 300},
            {scale: 0.7},
            {rotateX: Math.PI / 6},
            {rotateY: Math.PI / 6},
            {perspective: 300}
        ]}
    >
        <Skottie animation={lottieAnimation} frame={frame}/>
    </Group>
</Canvas>

The rotateX and rotateY transformations are applied but the perspective flag is ignored.

Is there any workaround for this?

Thank you in advance!

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions