UNPKG

1.34 kBMarkdownView Raw
1### Examples
2
3It's our goal to create a wide variety of example of how Tether
4can be used. Here's what we have so far, please send a PR with
5any examples you might create.
6
7#### Beginner
8
9- [simple](../../examples/simple): A simple example to get you started
10- [out-of-bounds](../../examples/out-of-bounds): How to hide the element when it would
11otherwise be offscreen
12- [pin](../../examples/pin): How to pin the element so it never goes offscreen
13- [enable-disable](../../examples/enable-disable): How to enable and disable the Tether
14in JavaScript
15
16#### Advanced
17
18- [content-visible](../../examples/content-visible): Demonstrates using the `'visible'`
19`targetModifier` to align an element with the visible portion of another.
20- [dolls](../../examples/dolls): A performance test to show several dozen elements,
21each tethered to the previous. Try dragging the top left tether.
22- [element-scroll](../../examples/element-scroll): Demonstrates using the `'scroll-handle'`
23`targetModifier` to align an element with the scrollbar of an element.
24- [scroll](../../examples/scroll): Demonstrates using the `'scroll-handle'` `targetModifier`
25to align an element with the body's scroll handle.
26- [viewport](../../examples/viewport): Demonstrates aligning an element with the
27viewport by using the `'visible'` `targetModifier` when tethered to the body.