Study/css

hover / i:not(:hover)

더 멋진 세상을 꿈꾸는 개발자 2020. 5. 14. 11:26

 

 

.상위클래스:hover i:not(:hover){
	opacity: 0.1;
}

i:hover{
	transform: translateY(-10px);
    color: black;
}

 

이렇게 작성하면, 

 

아래와 같은 식으로 됨. 

 

 

 

 

오호호:) 신기하구만