Fixed the name of the function in README.md (#915)
`animateCss` to `animateCSS` because that's what is used as an example after.
This commit is contained in:
parent
97e17068a6
commit
0ca8f2dc7c
|
@ -105,7 +105,7 @@ element.addEventListener('animationend', function() { doSomething() })
|
||||||
You can use this simple function to add and remove the animations:
|
You can use this simple function to add and remove the animations:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
function animateCss(element, animationName, callback) {
|
function animateCSS(element, animationName, callback) {
|
||||||
const node = document.querySelector(element)
|
const node = document.querySelector(element)
|
||||||
node.classList.add('animated', animationName)
|
node.classList.add('animated', animationName)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue