Skip to content

Add 2D Mode #171

@jo-chemla

Description

@jo-chemla

It would be great for react-compare-slider to support a 2D mode, with onPositionChange callback that would be passed a 2D position array with x and y percentage, a bit similar to react-colorful (aria role=grid discussion) or leva vector2d control.

This feature is greatly illustrated in this feature request of imgui, and is like a combination of landscape and portrait modes. It could be useful for example to have:

  • the x slider position influence the clip/crop of foreground vs background
  • while the y position of the slider could play on transparency, between 0 and 100% opacity.

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