Ticket #9984 (closed enhancement: invalid)
Enhancement: "visibility" manipulation
| Reported by: | michael@… | Owned by: | michael@… |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.6.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I've often found visibility manipulation would be useful alongside the usual manipulation of the display style via show()/hide()/toggle().
One proposal would be to create function reveal()/vanish()/toggleClass() to do the equivalent for visibility, but if that's too much new surface area for the API, how about a new option parameter, with a boolean "visibility" flag. So $("foo").show({visibility: true}).
Use case: A "loading" message shown below a form field. Toggling with show()/hide() causes the whole form to be displaced.
Note (1): I took a straw poll and found 8 out of 8 people want visibility in the core: https://plus.google.com/106413090159067280619/posts/ZxRsZ9fyUtb (Though I realise a poll like this is probably more biased towards people wanting new features.)
Note (2): As Paul Irish pointed out in the comments to that poll, there's an argument this should be about opacity rather than visibility, though that's probably something that could take place behind the scenes.
Change History
comment:1 Changed 22 months ago by dmethvin
- Owner set to michael@…
- Status changed from new to pending
comment:2 Changed 21 months ago by trac-o-bot
- Status changed from pending to closed
- Resolution set to invalid
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

You can already animate the opacity ... what does this provide other than saving a few characters of typing?