renderLine() 是一切的起點,我們在這邊創建隱藏的svg path 好計算長度,並呼叫 requestAnimationFrame 進行loop,傳入 updateLine 函式來產生動畫。
確定! 回上一頁