0
我已經使用jQuery的像下面的代碼動畫瀏覽器的滾動
$(window).load(function() {
$(".shuffle").each(function() {
$(this).circulate({
speed: Math.floor(Math.random()*300) + 100,
height: Math.floor(Math.random()*100) - 70,
width: Math.floor(Math.random()*100) - 70
});
});
});
線的圓形動畫作品在頁面加載的罰款。
的HTML是像
<div id="target">
<div class="shuffle"></div>
<div class="shuffle"></div>
<div class="shuffle"></div>
<div class="shuffle"></div>
</div>
現在我想的是,當用戶向下滾動瀏覽器,因爲他達到與ID目標部分的股利,動畫應該開始...
請幫幫我 !!!
可否請您更新上述全碼 – Nida
它拋出的錯誤消息在控制檯此行domElement.getBoundingClientRect(); – Nida
偉大的解決方案非常感謝 – Nida