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

Add spotlight element #58

Merged
merged 3 commits into from
Mar 9, 2020
Merged

Add spotlight element #58

merged 3 commits into from
Mar 9, 2020

Conversation

pepelsbey
Copy link
Contributor

image

It makes a highlight circle that could be positioned and sized via custom properties.

@pepelsbey
Copy link
Contributor Author

@MeFoDy @shvaikalesh @nikolai-shabalin @yoksel, what do you think?

@MeFoDy
Copy link
Contributor

MeFoDy commented Mar 9, 2020

Really cool feature! 🔥
Can it be not a circle only? I need rectangles for the code highlighting sometimes.

@pepelsbey
Copy link
Contributor Author

image

<div class="spotlight" style="
    --spotlight-radius: 0;
    --spotlight-opacity: 0.2;
    --spotlight-width: 1024px;
    --spotlight-height: 50px;
    --spotlight-top: 50px;
"></div>

@MeFoDy there you go :)

@yoksel
Copy link

yoksel commented Mar 9, 2020

Nice idea! I'd like to use it : )

@pepelsbey pepelsbey merged commit 66b3f66 into master Mar 9, 2020
@pepelsbey pepelsbey deleted the spotlight branch March 9, 2020 21:32
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

Successfully merging this pull request may close these issues.

3 participants