• Q&A
  • 회원가입
  • 로그인

[pagination] CSS - Hoverable Transition Effect - (트랜지션 효과 페이징)

1,319  

예제

 

<style>

.hz {

  display: inline-block;

}


.hz a {

  color: black;

  float: left;

  padding: 8px 16px;

  text-decoration: none;

  transition: background-color .3s;

}


.hz a.on {

  background-color: red;

  color: white;

}


.hz a:hover:not(.on) {

  background-color: blue;

  color:white;

}

</style>


<div class="hz">

  <a href="#">&laquo;</a>

  <a href="#">1</a>

  <a href="#" class="on">2</a>

  <a href="#">3</a>

  <a href="#">4</a>

  <a href="#">5</a>

  <a href="#">&raquo;</a>

</div>


결과보기



찾아주셔서 감사합니다. Since 2012