Unable to catch event from the element

I’m trying to animate menu elements when off-canvas menu has opened.

Using this event from the documentation:
openedEnd.zf.offCanvas Fires when the off-canvas menu open transition is done.

Code I’ve used.

$('#offCanvas').on('openedEnd.zf.offCanvas', () => {
    console.log('animation function should be here');

But nothing has happened. I’ve tried another elements for catching the events - the same result.

What I’m doing wrong?