Skip to content

How does it handles operations order? #2

@jgabriel98

Description

@jgabriel98

Since transform operations order matters on the final result, how does this libs handle with it?

It always sets a specifics order?
or does it gets affected by the order inserted on builder? like this

const rotateFirstThenTranslate = builder({
  translateX: 30,
  rotate: 60,
});

// rotateFirstThenTranslate === 'translateX(200px) rotate(60deg)'



const translateFirstThenRotate = builder({
  translateX: 30,
  rotate: 60,
});

// translateFirstThenRotate === 'rotate(60deg) translateX(200px)'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions