내 목록 항목을 마우스로 가리키면 자식 항목 .pusher
에 CSS3 전환이 트리거되기를 바랍니다. 나는 내가 그것을 어떻게 이해 생각 다른 SO 질문을 읽은 후, JS가 아니라 CSS3 전환에이 일을하는 데 사용하고 있지만 제대로 작동하지 않습니다 :CSS3 전환, 자식 요소에서 애니메이션을 트리거 할 때 마우스를 움직일 때
#sidebar ul {
float: left;
list-style: none;
padding: 0;
margin: 0;
width: 100%;
}
#sidebar ul li {
padding: 20px;
position: relative;
list-style: none;
border-bottom: 1px solid #4a4a4a;
cursor: pointer;
-webkit-transition: max-width 0.5s ease;
transition: max-width 0.5s ease;
}
#sidebar ul li a {
color: #fff;
z-index: 5;
position: relative;
}
#sidebar ul li a:hover {
text-decoration: none;
}
#sidebar ul li:hover > .pusher {
max-width: 100px;
height: 100%;
background: #383838;
position: absolute;
left: 0;
top: 0;
z-index: 1;
}
#sidebar ul li:first-child {
border-top: 1px solid #4a4a4a;
}
미는 실제로 리튬에 추가되고, JS와,하지만이 문제가 발생해야한다고 생각하지 않아? (편집 :이 문제로 나타나지 않습니다)
바이올린 : http://jsfiddle.net/8KpQW/
당신은 작동 여부를 경우 만보기는 어렵다은'li'에 코딩 된'.pusher' 요소 테스트 예제를 시도해 볼 수도 문제 – Rex
의 바이올린을합니다. – jwatts1980
지금 막 피들에 그것을 시도, @ jwatts1980 불행히도 그것은 작동하지 않았다 : http://jsfiddle.net/8KpQW/ – Melbourne2991