formstone
Version:
Library of modular front end components.
19 lines (14 loc) • 358 B
Markdown
## Basic
Transition provides a predictable interface for moving to CSS based animations:
```javascript
(".target").transition(function() {
...
}).addClass("visible");
```
## Resolve
Transitions can manually resolved, which will immediately fire the associated callback:
```javascript
if (shouldResolve) {
(".target").transition("resolve");
}
```