Skip to content

Option to update text color when highlighted #82

@wpinfusion

Description

@wpinfusion

I'm using rough notation for the first time, and I'm trying to add the highlight animation to my title. It works, but I have an issue.

Imagine my background is white, and my text is black. Now I want to highlight in black, but that will hide the text because it's black as well. Is it possible to add another argument for the text color so it can be set to white after/while animating?

e.g.:

const annotation = annotate(element, {
      type: 'highlight',
      color: '#000',
      text: '#fff',
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions