css 질문입니다

css 질문입니다

QA

css 질문입니다

답변 1

본문


<h3 class="sliding-u-l-r">Left to Right</h3>

 


.sliding-u-l-r {
  display: inline-block;
    position: relative;
  text-decoration: none;
}
.sliding-u-l-r:after {
  content: '';
  position: absolute;
  margin-bottom: -10px;
  bottom: 0;
  left: 0;
  width: 100%;
  border-bottom: 8px solid #3366FF;
  transition: 0.4s;
}
.sliding-u-l-r:hover:after {
  width: 0;
}

 

밑줄이 왼쪽으로 없어지는데, 오른쪽으로 없어지게 하려면 어떤걸 추가해야되나요?

이 질문에 댓글 쓰기 :

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 123,680
© SIRSOFT
현재 페이지 제일 처음으로