Sign inSign up

Anchors, with support for extending many features

Add-ons
2026-07-25 22:59 4 views • 0 downloads 1.5KB
Anchors, with support for extending many features
1
2
3
4
5
6
7
8
9
10
11
let newanchor = new anchor({
itemPiece: itemPiece, // All sections, including the header, used to obtain their heights
itemHeader: itemHeader, // Header of each section
flexItem: flexItem // Anchor section used to obtain its height
});
// Triggered when an anchor is clicked
newanchor.toheight(index)
// Listen for scroll events
window.onscroll = function(e) {
newanchor.addclass();
}