Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
waypoint('sticky')ナビゲーションバーのクラスを変更するたびに、別の要素のクラスを切り替えたい。オプションを使用してコールバックを起動しようとしましたhandlerが、機能しません。何ができますか?
waypoint('sticky')
handler
Waypointsのコールバックオプションは、何らかの理由で「ハンドラー」であるため、次のように実行できます。
$.waypoint('sticky', { handler: function(dir) { //Do stuff when the user scrolls past this waypoint. } });