Item Alignment Events

Hover triggers 'align-item' events so that other pages with like items can be scrolled into view.

id = $(this).data('id') key = $(this).parents('.page:first').data('key') $('.page').trigger('align-item', {key, id})

The event has one argument, an object, often called an align, with properties key and id.

The key is the lineup key for the triggering page.

The id is the id of an item in the story or journal.

All pages listen for the event.