Skip to content

[Popover][Tooltip][HoverCard][Menu] Access to the runtime data-side value for JS animation #791

Open
@jjenzz

Description

@jjenzz

If using a JS lib for animation, the runtime value of data-side is not available to these libs so they cannot apply origin-aware animations.

This is a sandbox provided in our discord where they've attempted to use the data-side attribute as a prop by utilising our Slot component. Unfortunately, the attribute value will not be available when the motion.div component mounts so the animation never plays out.

I'm not sure how we can solve this given that we need the content to render for a frame in order to work out what side it should appear but I'm raising this ticket for us to have a think.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions