In effect, make it look like we've gone to another passage, but all we've done is replace the text in the first part of the passage with the text that we previously hid? Using Sugarcube 2.5?/Twine 2.
If it's not clear, I wanted to have my Passages 'look' like you can read them in one glance, then there's a link at the bottom of it (which I know how to do now (span/click/replace)), which opens up the text - but replace just seems to 'add' onto the existing text entry, where I'd like it to replace the first part of the Passage? Hope that makes sense now.
I've been trying to find out how to do this - if it's not possible, that's okay. I'll be content on having more text open up, but... I think it'd be a cool way to keep showing text until you're done reading that entry.
Comments
The following will do what you asked, assuming that v2.5 has the same features as v2,7,2, it uses a Custom Style to define element with an ID of text which is replaced when the "Continue" link is clicked.
note: If the text you are replacing the original with is long then you may want to store that text within another passage and use a <<display>> macro to display it.
(Okay. Updated to 2.7.2)
How do you get rid of the second "Keep Reading" <<click>>? It works beautifully - but the 'Click to continue' doesn't 'disappear' at all.
The target element in greyelf's examples is the one created by the custom styles markup. For example: For the <<click>> to be replaced along with everything else, it needs to be within that container. In their first example, the <<click>> was simply outside of the replacement area, which is why it wasn't replaced.
There is, honestly, nothing weird about how this works.