Skip to content

[Hoverable] Add support for an external controller #446

@titouanmathis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions