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

Hide before/after label #113

Open
filipesoares17 opened this issue Sep 9, 2019 · 1 comment
Open

Hide before/after label #113

filipesoares17 opened this issue Sep 9, 2019 · 1 comment
Assignees

Comments

@filipesoares17
Copy link

Hey!

Is it there any option to hide the before and after label when the handle is over the label?
For example, hide the before label when the after image is over the text.

Mário.

@nickMarz
Copy link

nickMarz commented Dec 3, 2020

You just need to omit the data-content or the elements in

<div class="twentytwenty-overlay">
  <div class="twentytwenty-before-label" data-content="Before"></div>
  <div class="twentytwenty-after-label" data-content="After"></div>
</div>

@nickMarz nickMarz self-assigned this Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants