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:
KonScyence 2019-02-24 09:54:13 -05:00 committed by Elton Mesquita
parent 97e17068a6
commit 0ca8f2dc7c
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ element.addEventListener('animationend', function() { doSomething() })
You can use this simple function to add and remove the animations:
```javascript
function animateCss(element, animationName, callback) {
function animateCSS(element, animationName, callback) {
const node = document.querySelector(element)
node.classList.add('animated', animationName)