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 Hover Extension/Pebble #10

Open
gmorton opened this issue Oct 5, 2011 · 1 comment
Open

Add Hover Extension/Pebble #10

gmorton opened this issue Oct 5, 2011 · 1 comment

Comments

@gmorton
Copy link

gmorton commented Oct 5, 2011

Hi,

I think there could be some value in extending pebbles to support scenarios where you have elements that are only visible when hovering over a target - similar to the way in which websites like twitter works where you hover over a tweet and are given options like "reply" and "re-tweet".

Keen to hear your thoughts.

Thanks,
Glenn

@holic
Copy link

holic commented Oct 26, 2011

This is easy enough with pure CSS.

HTML:

<div>
    <p>Some content</p>
    <p class="options"><a href="#">Edit</a> <a href="#">Delete</a></p>
</div>

CSS:

div .options {
    display: none;
    /* or
    visibility: hidden; */
}
div:hover .options {
    display: block;
    /* or
    visibility: visible; */
}

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

2 participants