Is there a way to disable the <AvatarGroup/>
hover animations?
#2664
-
The avatargroup.movI prefer to just use a (As some feedback, if the intent of this animation is to be able to fully see an avatar that's behind another one, I'd suggest that the top most avatar should not be animated as it's already fully visible. This would also cover the case where right now if you only have one avatar, it is also animated when you hover over it. I'd be happy to report a feature request or bug for this if that would be useful.) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@martinreddy you can set 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> |
Beta Was this translation helpful? Give feedback.
-
That works great! Thanks, @wingkwong. |
Beta Was this translation helpful? Give feedback.
@martinreddy you can set
data-[hover=true]:translate-x-0
in avatar base.Example: