跳到主要内容

progressive-outline

Show progressive outline. It will make other sections except the current section to be semi-transparent.

Parameters

alpha : ratio    default: 60%

The transparency of the other sections. Default is 60%.

level : int    default: 1

The level of the outline. Default is 1.

transform : function

A function applied to each outline entry. It receives (cover: bool, level: int, alpha: ratio, ..args, it) where cover is true when the entry should be visually de-emphasized, it is the outline entry element, and alpha is the transparency value.

..args : arguments

Additional arguments forwarded to the inner outline() call.

Returns: content