각 앨범에 누적 사진이 포함 된 사진 갤러리를 만들려고합니다. 앨범을 가져 가면 한 이미지가 왼쪽으로 20 회전하고 한 이미지는 오른쪽으로 20 회전하므로 한 번에 3 개의 이미지가 표시됩니다.CSS : 3 개의 누적 이미지 위로 마우스를 가져 가기
저는 문제는 호버 신호가 스택의 최상위 이미지에 붙어 있다고 생각합니다. 나는 아래에서 시도한 것을 게시 할 것이다. 어떤 아이디어? 가능한가? 그냥이 변경
<!DOCTYPE html>
<head>
<title>Just-CSS: Rotate stacked images on hover</title>
<style>
body {
background-color: black;
color: white;
padding: 20px;
}
ul {
margin: 0;
padding: 0;
}
ul li {
list-style: none;
position: absolute;
}
img { -webkit-transition: all 0.2s; }
img:hover.green {-webkit-transform: rotate(-20deg);}
img:hover.blue {-webkit-transform: rotate(20deg);}
img { border: 4px solid white; }
img.red { background-color: red; }
img.green { background-color: green; }
img.blue { background-color: blue; }
</style>
</head>
<body>
<ul class="img-stack">
<li><img class="red" width="100" height="100" src=""></li>
<li><img class="green" width="100" height="100" src=""></li>
<li><img class="blue" width="100" height="100" src=""></li>
</ul>
</body>
</html>
난 당신이 자바 스크립트와 함께 할 수 있습니다 알고 있지만 난 그냥 그렇게하시기 바랍니다 어떤 자바 스크립트 :