For example, to apply a yellow background to each section of prose as it is read, as is traditionally found in accessible talking books, you would define the following definition in your CSS file:

.-epub-media-overlay-active
{
    background-color: yellow;
}

And that’s the long and short of creating overlays.