title: $:/plugins/tiddlywiki/dynaview/examples/reveal-on-scroll tags: $:/tags/dynaviewExamples caption: Reveal on Scroll \define indicator(index) <$reveal state="$:/state/reveal-on-scroll/example$index$" type="match" text="yes"> $index$ \end \define lorem-ipsum(index)

Heading $index$

<$reveal state="$:/state/reveal-on-scroll/example$index$" type="match" text="yes"> (Rendered at <>) Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end \define lorem-ipsum-unset(index)

Heading $index$

<$reveal state="$:/state/reveal-on-scroll/example$index$" type="match" text="yes"> (Rendered at <>) Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end <$reveal state="$:/state/dynaview-example/reveal-scroll/unset" type="nomatch" text="yes"> !!!Same example, showing elements when they scroll into view and hiding elements when they scroll out of view:
<$button set="$:/state/dynaview-example/reveal-scroll/unset" setTo="yes">Change Example <$reveal state="$:/state/dynaview-example/reveal-scroll/unset" type="match" text="yes"> !!!Same example, but only showing elements when they scroll into view:
<$button set="$:/state/dynaview-example/reveal-scroll/unset" setTo="no">Change Example Visible: <$list filter="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16"> <$macrocall $name="indicator" index=<>/> <$reveal state="$:/state/dynaview-example/reveal-scroll/unset" type="nomatch" text="yes"> <$list filter="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16"> <$macrocall $name="lorem-ipsum" index=<>/> <$reveal state="$:/state/dynaview-example/reveal-scroll/unset" type="match" text="yes"> <$list filter="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16"> <$macrocall $name="lorem-ipsum-unset" index=<>/>