Extensions/Assessment/readingMask

Renders a reading mask that helps users focus on specific parts of the content. The reading mask is a semi-transparent overlay that highlights the area around the mouse cursor, allowing users to read text more easily without distractions. It can be toggled on and off, and it updates its position based on mouse movements

Reading Mask feature

Example
LT.init(itemsApp, {
    extensions: ['readingMask'],
});

Methods

hide() → {void}

Hides the reading mask if it is currently visible. If the mask is already hidden, it does nothing.

Since
3.0.0
Returns: 
void

show() → {void}

Shows the reading mask if it is currently hidden. If the mask is already visible, it does nothing.

Since
3.0.0
Returns: 
void

toggle() → {boolean}

Shows or hides the reading mask. Returns true if the reading mask is currently visible, false otherwise.

Since
3.0.0
Returns: 
boolean