Answers for "hover on father elemet activates a child element css"

CSS
0

hover on father elemet activates a child element css

/* EXAMPLE
projetos-hover is father; projetos-hover-text is the child
When hover on the father use ">" to aply on a child
*/

.projetos-hover-text {
  transform: translateY(-50%);
  transition: all 0.2s ease 0s;
}

.projetos-hover:hover > .projetos-hover-text {
  transform: translatey(+5%);
}
Posted by: Guest on May-09-2020

Code answers related to "hover on father elemet activates a child element css"

Browse Popular Code Answers by Language