2013-05-18 13 views

回答

0

找到解決方案!

在最後一張圖像的屬性中,將.arc,.lineTo或.moveTo屬性更改爲.moveTo自己的座標。座標將匹配style.css;然而,減號需要交換:

demo.js-

從:

// Arc and rotate back to the beginning. 
.arc(1300, 50, 900, -Math.PI/2, -Math.PI, true, {rotate: Math.PI*2, name: "end"}); 

到:

// Arc and rotate back to the beginning. 
//.arc(1300, 50, 900, -Math.PI/2, -Math.PI, true, {rotate: Math.PI*2, name: "end"}); .moveTo(1150,-900); 

在.moveTo上面的例子中(1150, -900)表示提供循環的自身圖像的座標,除非用戶向後滾動。座標在style.css中發現:

.follow { 
    width: 475px; 
    left: 900px; 
    top: -1150px; 
    transform: rotate(90deg) translateX(50px); 
} 

通知左&頂部座標匹配交換減號。

1

剛剛成立wrapAround:false 它看起來像這樣

$ scrollPath({drawPath:真實,環繞式:假})( 「包裝」)。

相關問題