The Animation Object

{
    "type": "add",
    "lines": "console.log(\"Hello World!\")\n",
    "start": "1", 
    "end": "2" 
}

Attributes

type (string)

The type of your animation.

Example:

"type": "insert"

lines (string)

The code to use in the animation.

Example:

"lines": "console.log(\"Hello World!\")\n"

start (integer)

The start of your animation in seconds.

Example:

"start": "1"

end (integer)

The end of your animation in seconds.

Example:

"end": "2"

offset (integer)

The number of line to move up or down during a scrolling animation.

A positive integer will move down. A negative integer will move up.

Example:

"offset": "10"