I'm

Developer, Designer, Photographer

GET IN TOUCH

  • Buk-gu, Busan, Republic of Korea
  • ungdoli0916@naver.com
  • Kakao ID : Ungdoli
Your message has been sent. Thank you!
(즐거웅코드) CSS 화살이 날아가 꽂히는 느낌의 '자세히 보기' 버튼 만들기

· 즐거'웅' 코드 (Source)/HTML & CSS & JAVASCRIPT
2021. 6. 3. 12:26

반응형
리소스
images.zip
2.1 kB
예제 소스
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<style>
    .arrow_box { position: relative; display: inline-block; width: 100%; height: 45px; }
    .arrow_box .icon { transition: all .5s ease; position: absolute; left: 0; top: 0; }
    .arrow_box:hover .icon { left: 100%; transform: translate(-100%, 0); }
    .arrow_box .icon .arrow { display: inline-block; width: 45px; height: 45px; background: url("/images/icon_arrow.svg") no-repeat center center/cover; }
    .arrow_box .opa_0 { position: absolute; right: 0; bottom: 0; display: inline-block; opacity: 0; transition: opacity .3s ease; transition-delay: .25s; }
    .arrow_box .target { width: 45px; height: 45px; background: url("/images/icon_target.svg") no-repeat center center/cover; }
    .arrow_box .title { width: 141px; height: 45px; background: url("/images/icon_more.svg") no-repeat center center/cover; }
    .arrow_box:hover .target, .arrow_box:hover .title { opacity: 1; }
</style>
 
<a href="#">
    <div class="arrow_box">
        <div class="icon">
            <span class="arrow"></span>
        </div>
        <span class="target opa_0"></span>
        <span class="title opa_0"></span>
    </div>
</a>
구현 예시
반응형