User Tools

Site Tools


Sidebar

Passage markup

basics

coding

extra

list

section

whitespace

Macros

basics

colour

data structure

date and time

game state

live

maths

number

revision

saving

showing and hiding

string

styling

url

deprecated

Types of data

Special keywords

Special passage tags

harlowe:transition

(transition: String) → Changer

Also known as: (t8n:)

A command that applies a built-in CSS transition to a hook as it appears.

Example usage:

(transition: "pulse")[Gleep!] makes the hook [Gleep!] use the “pulse” transition when it appears.

Details:

At present, the following text string will produce a particular transition:

  • “dissolve” (causes the hook to gently fade in)
  • “shudder” (causes the hook to instantly appear while shaking back and forth)
  • “pulse” (causes the hook to instantly appear while pulsating rapidly)

All transitions are 0.8 seconds long, unless a (transition-time:) command is added to the command.

See also:

harlowe/transition.txt · Last modified: 2017/06/18 23:11 by l