Skip to content

Is there a way to disable the <AvatarGroup/> hover animations? #2664

Closed Answered by wingkwong
martinreddy asked this question in Help
Discussion options

You must be logged in to vote

@martinreddy you can set data-[hover=true]:translate-x-0 in avatar base.

Example:

<AvatarGroup>
  <Avatar
    classNames={{
      base: "data-[hover=true]:translate-x-0",
    }}
    src="https://i.pravatar.cc/150?u=a042581f4e29026024d"
  />
  <Avatar
    classNames={{
      base: "data-[hover=true]:translate-x-0",
    }}
    src="https://i.pravatar.cc/150?u=a042581f4e29026024d"
  />
  <Avatar
    classNames={{
      base: "data-[hover=true]:translate-x-0",
    }}
    src="https://i.pravatar.cc/150?u=a042581f4e29026024d"
  />
</AvatarGroup>

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by martinreddy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants