Skip to content

Instantly share code, notes, and snippets.

@ohiofi
ohiofi / screenShake README.md
Last active November 25, 2015 16:26 — forked from dariusk/README.md
Twine screenShake macro

This Twine version 1 macro lets you make the screen shake! Tested in Chrome and Firefox. Should work in Opera and IE 10+. Uses CSS3 animations, taken from this CSS Reset tutorial.

See a demo in action here.

How to set it up

IMPORTANT NOTE: Due to a bug in Twine 1.3.5, macros did not work on the Start passage. This issue has been fixed in Twine 1.4.1.

  • Paste the contents of the stylesheet.css file below into a new passage. Call the passage whatever you want, and add the tag "stylesheet" to it.
  • Paste the contents of the script.js file below into a new passage. Call the passage whatever you want, and add the tag "script" to it.