note: You may want to get a more experienced CSS coder to look at my answer.
Transitions generally monitor the state of a property and do something when it changes.
In the case of Fades the property being monitored is generally opacity and you generally are watching for it to change from either one-to-zero or zero-to-one. So the relevant CSS would look something like the following which is based on SugarCube's CSS.
Now you need some way to force the opacity to change when Snowman traverses from one passage to another and you do this by first defining a passage-in CSS class which changes the opacity to zero:
... and then use the Snowman hidepassage and showpassage:after events to add and remove the passage-in CSS class from the #passage div element. The following code goes in your Story Javascript area.
warning: you may need to add a time delay in the showpassage:after event's code using the setTimeout() Method depending on how complex your passage content becomes and how long it takes to render the HTML for the passage.
Sugacube 2 used a 40ms delay and the replacement code would look something like the following.
Comments
Transitions generally monitor the state of a property and do something when it changes.
In the case of Fades the property being monitored is generally opacity and you generally are watching for it to change from either one-to-zero or zero-to-one. So the relevant CSS would look something like the following which is based on SugarCube's CSS.
Now you need some way to force the opacity to change when Snowman traverses from one passage to another and you do this by first defining a passage-in CSS class which changes the opacity to zero: ... and then use the Snowman hidepassage and showpassage:after events to add and remove the passage-in CSS class from the #passage div element. The following code goes in your Story Javascript area.
warning: you may need to add a time delay in the showpassage:after event's code using the setTimeout() Method depending on how complex your passage content becomes and how long it takes to render the HTML for the passage.
Sugacube 2 used a 40ms delay and the replacement code would look something like the following.