Skip to content

Commit

Permalink
live is enabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
attilaolah committed Jun 29, 2014
1 parent 258a3b3 commit eb32794
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 21 deletions.
22 changes: 4 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,32 +67,18 @@ var wow = new WOW(
animateClass: 'animated', // animation css class (default is animated)
offset: 0, // distance to the element when triggering the animation (default is 0)
mobile: true, // trigger animations on mobile devices (default is true)
live: false // act on asynchronously loaded content (default is false)
live: true // act on asynchronously loaded content (default is true)
}
);
wow.init();
```

### Asynchronous content support

- JavaScript
Animations will automatically triggered for any DOM nodes you add after calling
`wow.init()`. If you do not like that, you can disable this by setting `live`
to `false`.

```javascript
var wow = new WOW(
{
// ... rest of your config
live: true
}
);
wow.init();

// Example content loading
setTimeout(function () {
var moarItems = document.createElement('section');
moarItems.className = 'wow slideInRight';
document.body.appendChild(moarItems);
});
```

## Contribute

Expand Down
2 changes: 1 addition & 1 deletion dist/wow.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/wow.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/wow.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class @WOW
animateClass: 'animated'
offset: 0
mobile: true
live: false
live: true

constructor: (options = {}) ->
@scrolled = true
Expand Down

0 comments on commit eb32794

Please sign in to comment.