diff --git a/index.html b/index.html index e093089..777441f 100644 --- a/index.html +++ b/index.html @@ -1,11 +1,32 @@ - + - + 赴九天 问苍穹|中国载人航天 + + + + + + + + + + + + + + + + + + + + + @@ -133,7 +154,7 @@

Cosmic Inquiry Lab

@@ -164,7 +185,7 @@

Cosmic Inquiry Lab

const prevPoint = curve.getPointAtLength(Math.max(offset - 0.1, 0)) const angle = Math.atan2(point.y - prevPoint.y, point.x - prevPoint.x) * 180 / Math.PI - slider.setAttribute('transform', `translate(${point.x}, ${point.y}) rotate(${angle})`) + slider.setAttribute('transform', `translate(${point.x}, ${point.y}) rotate(${angle}`) } window.addEventListener('scroll', updateSlider)