# Highlight text effects: scroll, hover and underlines

> Use shortcodes or block editor buttons to highlight text on scroll, on hover, or with animated underlines.

Source: https://www.dna88.com/help/hp-text-effects/  
Section: Highlight Pro  
Updated: 2026-12-04

Highlight Pro has four text effects. You can add each one with a shortcode, or with a button in the block editor toolbar.

![The four effects on the demo page](https://www.dna88.com/wp-content/uploads/2026/12/hp-demo-effects.png)

| Effect | Short shortcode | Long shortcode | What the visitor sees |
| --- | --- | --- | --- |
| Highlight on scroll | `[h-s]…[/h-s]` | `[highlight-scroll]…[/highlight-scroll]` | The text is marked as it scrolls into view. |
| Hover effect | `[h-h]…[/h-h]` | `[highlight-hover]…[/highlight-hover]` | A background color appears when the mouse is over the text. |
| Vertical underline | `[h-u-v]…[/h-u-v]` | `[highlight-underline-v]…[/highlight-underline-v]` | A vertical underline effect appears on hover. |
| Horizontal underline | `[h-u-h]…[/h-u-h]` | `[highlight-underline-h]…[/highlight-underline-h]` | A horizontal underline effect appears on hover. |

Note

The effects only work while the master switch is on: **Highlight Pro → Highlight Pro → Settings**, first box.

## Highlight on scroll

1. Go to **Highlight Pro → Highlight Pro → Settings** .
2. Tick **Enabled Highlight on Scroll on** .
3. Choose a **Highlight on Scroll effect Style** :
   - **Background** : a full marker-pen background.
   - **Half** : a half-height marker highlight.
   - **Underline** : a line under the text.
4. Click **Save Changes** .
5. Wrap your text in the shortcode, for example: `[h-s]This sentence will be highlighted[/h-s]`

![Scroll, hover and underline shortcodes in the Settings tab](https://www.dna88.com/wp-content/uploads/2026/12/hp-admin-settings-2.png)

Use the copy button next to each shortcode box to copy it.

Tip

If you edit in HTML, you can also use the tag shown under **Highlight on Scroll on text HTML tag**: `<mark class="highlight-scroll-effect">your text</mark>`.

## Hover and underline effects

Wrap a sentence or paragraph in the shortcode you want:

```
[h-h]Hover over this text to highlight it.[/h-h]
[h-u-v]This text gets a vertical underline.[/h-u-v]
[h-u-h]This text gets a horizontal underline.[/h-u-h]
```

![The hover effect on the front end](https://www.dna88.com/wp-content/uploads/2026/12/hp-effect-hover.png)

![Vertical and horizontal underline effects](https://www.dna88.com/wp-content/uploads/2026/12/hp-effect-underlines.png)

Warning

The hover and underline effects are applied to a whole block (they are wrapped in a paragraph). Use them on a full sentence or paragraph, not on a word in the middle of a line.

## Use the block editor buttons

In the block editor (Gutenberg) you can apply the effects without typing shortcodes:

1. Select text in a Paragraph block.
2. Open the **More**  (down-arrow) menu in the block toolbar.
3. Choose **Highlight Scroll** , **Highlight Hover** , **Highlight Verticle Underline**  or **Highlight Horizontal Underline** .

## Change the colors

1. Go to **Highlight Pro → Highlight Pro → Color Settings** .
2. Pick a **Hover Background Color** , **Vertical Underline Color**  and **Horigontal Underline Color** .
3. Click **Save Changes** .

![The Color Settings tab](https://www.dna88.com/wp-content/uploads/2026/12/hp-admin-colors.png)

If you leave a color empty, the plugin uses its default color.

## Add your own CSS

The **Custom CSS** tab has a box for extra CSS rules, for example to change the scroll highlight color:

```
.highlight-scroll-effect { background-color: #ffe066; }
```

Do not type `<style>` tags in this box. Only the CSS rules themselves.
