To use an interest invoker,
add the interestfor attribute
to the trigger element
with its value pointing
to the id
of the popover
you want to open.
Interest versus action
Interest invokers are somewhat unique
to the web platform as a concept.
Most events are
in response to a user’s action
that significantly changes
the user’s context – they clicked a link
to a new page, pressed play,
or submitted a form.
Interest invokers drive more subtle behaviors.
They allow for a temporary state
before reverting back
to the original state.
It’s a much lower investment
for the user.
The cost of a user accidentally triggering an action
can be high – for example,
if they lose (or send) a half-written email,
or make an unintended purchase.
If a user accidentally opens a popover,
and then closes it,
they will likely only be annoyed or distracted.
Because the cost
of accidentally triggering a popover is lower,
you can make it easier for the user to trigger.
Article contents
- Interest versus action
- Triggering interest
- UI patterns
- Implementation Checklist
The demo where we put it all together
See the Pen Interest Invokers Delays by @jamessw on CodePen.
Read full article »