diff --git a/pad.html b/pad.html index 4609be8..00f9991 100644 --- a/pad.html +++ b/pad.html @@ -123,8 +123,9 @@ box-sizing: border-box; width:33.3%; text-align:center; + cursor:pointer; } -.frame__button[data-frame-active='false']:hover::before +.frame__button:hover::before { content: " "; display: block; @@ -132,21 +133,32 @@ height: 7px; background: black; position: absolute; - top: -27px; + top: -12px; left: 50%; transform: translateX(-5px) rotate(45deg); + transition: top 0.4s, bottom 0.4s; } -.frame__button[data-frame-index="0"]:hover::before, .frame__button[data-frame-index="1"]:hover::before, .frame__button[data-frame-index="2"]:hover::before +.frame__button--upper:hover::before { top:auto; - bottom:-23px; + bottom:-9px; +} +.frame__button[data-frame-active='true']:hover::before +{ + bottom:auto; + top: -30px; +} +.frame__button--upper[data-frame-active='true']:hover::before +{ + bottom: -26px; + top:auto; }