Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS jQuery .show() from center of element?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #46419
    Rugg
    Participant

    Is there a proper method when using jQuery **.show()** to display the element from its center as apposed to the default top/left?

    There is a way to accomplish this using the “scale” property of the jQuery UI library, but it seems a bit overkill to rely on that for something so simple. Also I’m aware this can be achieved using a css3 animation + transform scale… but I’m solely interested in a standard jQuery method. If anyone could shed some light on this matter, I would much appreciate it. Thanks!

    **jQuery UI example:**

    http://jsfiddle.net/r9aeb/

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.