-
Notifications
You must be signed in to change notification settings - Fork 8
Description
This issue serves to discuss new functionality proposed in #128 by @zzzhehao.
I chatted with @jimjam-slam and we've got an idea. The crop effect is very nice but it can be a bit disorienting to fully lose the context of the rest of the image when focusing on a particular bit of it. As an alternative, we could add a mask over the sticky with an opacity that would be settable, then the cropping transform would be cutting a rectangle out of that mask (revealing the sticky below) instead of cutting out everything except the rectangle. That'd have the effect of dimming every part of the sticky except what you'd interest in focusing on. If you set the mask to be the same color as the background and set it to be fully opaque, the effect would be the same as what you have here.
In terms of the interface for users, here's just a first cut:
Such as the HT1... [@cr-figure]{highlight="10%, 20%, 30%, 40%" highlight-level=".3"}
In this formulation, we lump this functionality in with the way we highlight text and code but provide a new syntax for generic rectangular highlights. We could set the color of the mask to be whatever the color of the background of the .sticky-col
is - that'd have the effect of making the non-highlighted part fade into the background.
What are your thoughts on this approach?