"Passage Transitions": Snowman (v2.0)

Summary

In Snowman 2.X, the sm.passage.showing event is triggered once a passage is loaded. By listening for this event, jQuery effects can be applied to the passage element to produce a transition. (In Snowman 2.X, the passage is the tw-passage element.)

Live Example

Download: Live Example

Twee Code

:: StoryTitle
Snowman 2: Passage Transitions

:: UserScript[script]
$(document).on('sm.passage.showing', function(event, passage) {

    $("tw-passage").hide(0).fadeIn(2000);

});

:: Start
[[Another Passage]]

:: Another Passage
[[A Third Passage]]

:: A Third Passage
Double-click this passage to edit it.

Download: Twee Code

results matching ""

    No results matching ""