function removeTransition(e) {
// e is an event
// if e.propertyName does NOT equal 'transform' then do nothing
if (e.propertyName !== 'transform') return;
// else remove the class "playing" from the target element (e)
e.target.classList.remove('playing');
}
another way it could be written is this:
function removeTransition(e) {
// e is an event
// if e.propertyName DOES equal 'transform'
if (e.propertyName == 'transform') {
// then remove the "playing" class from the target element
e.target.classList.remove('playing');
}
}
This is a pretty simple function so I’m guessing you understand at least some of it. Please be very specific about what you don’t understand. That way we know exactly what to explain.