Tôi đang cố gắng sử dụng Fullpage.js
. Đây là tập lệnh của tôi:Fullpage js hiệu ứng trượt?
<div id="fullpage" style="margin-top: 55px">
<div class="section" id="first" style="background-color: red">Some section - Home</div>
<div class="section" id="services" style="background-color: blue">Some section - Services</div>
<div class="section" id="why" style="background-color: green">Some section - Why</div>
<div class="section" id="portofolio" style="background-color: red">Some section - Portofolio</div>
<div class="section" id="price" style="background-color: blue">Some section - Price</div>
</div>
<script type="text/javascript">
$(document).ready(function() {
$('#fullpage').fullpage({
menu: '#navbarNav',
css3: true,
scrollingSpeed: 1000
});
});
</script>
Vấn đề là, không có hiệu ứng trượt trong trang HTML của tôi. Bất kỳ giải pháp? Tôi không thấy bất kỳ lỗi nào trong bảng điều khiển trình duyệt của mình.
CẬP NHẬT
Có một vấn đề thứ hai, Khi tôi di chuyển đến phần ngẫu nhiên sau đó tôi bấm menu, neo không hoạt động, ý tôi là nó giữ ở phần mà tôi di chuyển.