Pull-down text box

Had one in the former website but am trying to move it to Sparkle. Can this be done?

Example: halfway down the page and starts with this text below:

May 3, 1948. The U.S. Supreme Court ruled in [Shelley v. Kraemer that the enforcement of racially…

then on screen you would run the mouse over that line and the rest of the paragraph shows after. Former site link below :

https://mappingsegregationdc.org

Not sure how to reproduce it.

It can be reproduced very similarly, by using layout blocks.

A layout block can be set to be “initially hidden”, and then a button, or text fragment, can have an on click action that shows/hides/toggles the visibility of the layout block.

What can’t be done in Sparkle is having a single continuous text box with the first clickable part and the second collapsed part (I don’t know if that’s how it was done in Muse), but if you structure each in two text boxes, with the second one tucked away inside a layout block, you have almost exactly that effect.

The layout block documentation includes a video about setting up an accordion with layout blocks, and I’d say you can follow those instructions except replacing the disclosure button with a text block.

https://sparkleapp.com/docs/layout-blocks.html

1 Like

Yay, thanks very much. I’ll give a try.