Skip to content

[Hoverable] Add support for an external controller #446

Description

@titouanmathis

As of now, the Hoverable component only provides support for moving a target inside a parent element.

<div data-component="Hoverable"> <!-- ← parent -->
  <div data-ref="target">...</div> <!-- ← target -->
</div>

We might need to have the same behavior, but based on the pointer movements on another element.

<div data-component="HoverableController"></div> <!-- ← controller -->

<div data-component="Hoverable"> <!-- ← parent -->
  <div data-ref="target">...</div> <!-- ← target -->
</div>

Example implementation: playground

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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