Skip to content

Make children hover effect trigger on parents hover #3661

Closed Answered by marcuslimdw
afusdev asked this question in Q&A
Discussion options

You must be logged in to vote

use the Tailwind group utility (from https://tailwindcss.com/docs/hover-focus-and-other-states#styling-based-on-parent-state):

with ui.element(parent).classes("group"):
     ui.image("child.jpg").classes("group-hover:scale-110")

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@falkoschindler
Comment options

@afusdev
Comment options

Answer selected by afusdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants