Strangely enough, Twine 2 harlowe default transition "dissolve" only works for new passages, but not for the transitios of new text inside a node, for example, hooks and the click macro.
I know I could apply any transition effect to any hook by hand, as this:
(click: ?sleep)[(transition: "dissolve")[Restful sleep at last. But you cannot help to [[dream about her]].]]
But I have a problem with that, I have a gazillion of hooks in my game, and some nested inside another. So that it is not an option.
There is a way to apply a transition to all hooks at once? Vía macros or CSS?
Thanks.
Comments
If you want to apply an incoming dissolve to a link you can add the relevant animation rule to the Harlow link classes:
Applying dissolves to any element en-masse is really just a case of finding what the element is called document-wide and writing an animation rule for it. Generally the best way is to use Chrome's dev tools to inspect the game as you're playing it to find out what's going on where, then you write a css rule to match the desired element.
However, that said - there are many situations where you might want to address things individually, so I wouldn't write that off as a valid technique. You do have to copy paste some things in a game.
Yeah, Furkle helped me with this, and we got the proper tag to apply the animation, however, it did not work in the end (problems with something of the harlowe's DOM that I don't understand), so I've opted for removing all the effects at once with this:
But I think the ideal solution is that in a future update of Harlowe the default transition applies to appearing hooks too.
Thanks!