테스트 사이트 - 개발 중인 베타 버전입니다

애니메이션 버튼

· 8년 전 · 2014

애니메이션 버튼


마우스를 올리면 화살표가 추가됩니다.



 

마우스 오버시 


 


[전체소스]

<!DOCTYPE html>

<html>

<head>

<style>

.button {

  display: inline-block;

  border-radius: 4px;

  background-color: #f4511e;

  border: none;

  color: #FFFFFF;

  text-align: center;

  font-size: 28px;

  padding: 20px;

  width: 200px;

  transition: all 0.5s;

  cursor: pointer;

  margin: 5px;

}


.button span {

  cursor: pointer;

  display: inline-block;

  position: relative;

  transition: 0.5s;

}


.button span:after {

  content: '\00bb';

  position: absolute;

  opacity: 0;

  top: 0;

  right: -20px;

  transition: 0.5s;

}


.button:hover span {

  padding-right: 25px;

}


.button:hover span:after {

  opacity: 1;

  right: 0;

}

</style>

</head>

<body>


<h2>Animated Button</h2>


<button class="button" style="vertical-align:middle"><span>Hover </span></button>


</body>

</html>


댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
3260
3259
3258
3257
3256
3255
3254
3253
3252
3251
3250
3249
3248
3247
3246
3245
3244
3243
3241
3240
3239
3238
3237
3236
3235
3234
3233
3232
3231
3230