-
Notifications
You must be signed in to change notification settings - Fork 507
Handling Animations
dariel edited this page May 7, 2014
·
5 revisions
Animations can be managed directly from statements in the HTML page elements. Or using JavaScript.
A declaration is composed by one or many sentences, each sentence ends with (;) and is formed by one or many definitions.
Declaration -> Sentence 1; ... ; Sentence n
Sentence -> Definition, ... , Definition n
Definition -> if | on | do | to | before | after | helper
Examples:
<header data-anijs="if: click, do: wobble; if: scroll, on: window, do: swing">
<!-- ... -->
</header>
<div class="demo-square demo1" data-anijs="if: click, do: flipInY, to: .container-box"></div>
<input id="name" type="text" data-anijs="if: focus, do: wobble, to: p">
- Get started
- The AniJS Language
- Sentence and Definitions
- Playing with CSS classes
- Clone and remove html elements
- Selecting html elements
- Referring to the current element
- Emitting your own events is easy
- Browser Compatibility
- Registering new Helpers
- Animation Context Instance
- Writing before and after functions
- Remove animation after function
- Hold animation after function
- Listening events from document and window
- Add default class names while Anim
- Changing travel scope
- Creating Events Systems
- Custom Events Listening
- Purge Events
- Handling Animations Using JavaScript
- Running AniJS repeatedly
- JQuery Events System
- Using AMD