제이쿼리 패럴랙스
1. 제이쿼리와 패럴랙스 스크립트를 헤더에 삽입합니다. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="/path/to/parallax.js"></script>
2. html
<div class="parallax-window" data-parallax="scroll" data-image-src="/path/to/image.jpg"></div>3. js
$('.parallax-window').parallax({imageSrc: '/path/to/image.jpg'});4. css
.parallax-window { min-height: 400px; background: transparent; }
댓글 0
댓글을 작성하려면 로그인이 필요합니다.
아직 댓글이 없어요
이 글에 대한 생각을 가장 먼저 남겨보세요.