This shows you the differences between two versions of the page.
— |
harlowe:transition-depart [2019/04/16 03:30] (current) l created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | **(transition-depart: //[[harlowe:string|String]]//) → //[[harlowe:changer|Changer]]//** | ||
+ | Also known as: [[harlowe:t8n-depart|(t8n-depart:)]] | ||
+ | |||
+ | A [[harlowe:changer|changer]] that alters passage links, [[harlowe:link-goto|(link-goto:)]]s, and most every other kind of link, changing which passage fade-out animation the link uses. | ||
+ | |||
+ | === Example usage: === | ||
+ | |||
+ | * ''%%(t8n-depart: "dissolve")[[Next morning]]%%'' changes the ''%%[[Next morning]]%%'' link, such that clicking it takes you to the "Next morning" passage with the current passage smoothly fading out instead of instantly disappearing. | ||
+ | * ''%%(enchant: ?Link, (t8n-depart: "dissolve"))%%'' causes ALL passage links to use the smooth fade-out. This is best used in a "header" or "footer" tagged passage. | ||
+ | |||
+ | === Details: === | ||
+ | |||
+ | This macro accepts the exact same transition names as [[harlowe:transition|(transition:)]]. * "instant" (causes the passage to instantly vanish) * "dissolve" (causes the passage to gently fade out) * "flicker" (causes the passage to roughly flicker in - don't use with a long [[harlowe:transition-time|(transition-time:)]])) * "shudder" (causes the passage to disappear while shaking back and forth) * "rumble" (causes the passage to instantly appear while shaking up and down) * "slide-right" (causes the passage to slide in from the right) * "slide-left" (causes the passage to slide in from the left) * "pulse" (causes the passage to disappear while pulsating rapidly) | ||
+ | |||
+ | Attaching this macro to a hook that isn't a passage link won't do anything (no error message will be produced). | ||
+ | |||
+ | You can't combine transitions by adding them together, like you can with [[harlowe:text-style|(text-style:)]] - ''%%(t8n-depart:"dissolve")+(t8n-depart:"shudder")%%'' won't make a transition that simultaneously dissolve-fades and shudders. | ||
+ | |||
+ | === See also: === | ||
+ | |||
+ | [[harlowe:transition-arrive|(transition-arrive:)]] |