6.1から続きます
3:スライドアニメーションをスクロールの監視で発火する
HTMLの記述
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="container">
<!-- <div class="cover-slide hover-darken inview">
<div class="bg-img-zoom img-bg50"></div>
</div> -->
<div class="cover-slide hover-darken">
<img class="img-zoom" src="images/image-1.jpg" alt="" />
</div>
<div class="cover-slide hover-darken">
<img class="img-zoom" src="images/image-1.jpg" alt="" />
</div>
<div class="cover-slide hover-darken">
<img class="img-zoom" src="images/image-1.jpg" alt="" />
</div>
<div class="cover-slide hover-darken">
<img class="img-zoom" src="images/image-1.jpg" alt="" />
</div>
</div>
<script src="scroll-polyfill.js"></script>
<script src="scroll.js"></script>
<script src="main.js"></script>
</body>
</html>
SCSSの記述
続きを読む →