Macros for applying a shaking animation to various element(s).
Overview
SugarCube is a free (gratis and libre) story format for Twine/Twee, based on TiddlyWiki.
This documentation is a reference for the <<shake>>
macro set for SugarCube, it assumes at least a passing knowledge of SugarCube macros.
Requirements
This package requires SugarCube v2.5.0 or later.
Contents
The files included in this package are:
README.html
: This document.
shake-macro-set.min.js
: The, minified, macros.
shake-macro-set.css
: The styles required by the macros.
Installation
JavaScript
- Open the
shake-macro-set.min.js
file in a text editor (not a word processor) and copy its contents.
- Paste them into your project's script section:
- Twine 1:
script
-tagged passage.
- Twine 2: Story JavaScript.
Stylesheet
- Open the
shake-macro-set.css
file in a text editor (not a word processor) and copy its contents.
- Paste them into your project's stylesheet section:
- Twine 1:
stylesheet
-tagged passage.
- Twine 2: Story Stylesheet.
Macros
<<shake>>
<<shakescreen>>
<<shaketarget>>
Live demo
Demo Twee code:
:: Start
<<shake>>Help! I can't stop shaking.<</shake>>