1
그라디언트가있는 버튼이 있으며, 마우스를 올리면 그라디언트가 방향 전환됩니다. 여기에서 시작하는 CSS는 다음과 같습니다마우스 오버시 그라디언트 방향 만 변경하십시오.
.button-1 {
border: 1px solid #15440a;
border-radius: 2px;
color: white;
background-color: #2890b;
background-image: linear-gradient(#299c0f 20%, #1a7b09 80%);
font-size: 13px;
}
나는 이런 식으로 뭔가 할 싶습니다
.button-1:hover {
/* change just direction of gradient */
/* keep colors the same */
}
이 작업을 수행하는 방법은 없나요을?