Is it possible to run the animation @keyframes from js script?

Tell me. Is it possible to run a very simple animation in JavaScript?
In the JS file. For example, to register the note.onclick = and so on....
https://jsfiddle.net/aLhdg5f8/1/
June 10th 19 at 14:38
1 answer
June 10th 19 at 14:40
Solution
note.style.animation = 'ivan 3s infinite';

or

.ivan {
 animation: ivan 3s infinite;
}


note.classList.add('ivan')

Find more questions by tags CSS