Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to update text color when highlighted #82

Open
wpinfusion opened this issue Jun 7, 2024 · 0 comments
Open

Option to update text color when highlighted #82

wpinfusion opened this issue Jun 7, 2024 · 0 comments

Comments

@wpinfusion
Copy link

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',
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant