Mit JQuery von der mittleren Animation aus wachsen

Ich freue mich auf ein Popup-Div von einer Schaltfläche. Wenn auf die Schaltfläche geklickt wird, soll das Popup von der Mitte der Schaltfläche nach außen wachsen und gleichzeitig in die Mitte des Bildschirms gleiten. Ich denke nicht, dass dies zu schwer sein sollte, aber ich kann nirgendwo Schnipsel finden. Jede Hilfe wäre sehr dankbar.

Dank der Hilfe von Jamie Dixon habe ich diesen Code zum Laufen gebracht.

<code>$('#grower').css({
    backgroundColor: '#FFFFFF',
    border: '10px solid #999',
    height: '0px',
    width: '0px',
    color: '#111111',
    fontWeight: 'bold',
    padding: '10px',
    display: 'none',
    position: 'absolute',
    left: $(this).position().left,
    top: $(this).position().top
}).appendTo('#overlay').fadeIn(0).animate({
    position: 'absolute',
    height: '200px',
    width: '600px',
    marginTop: '-120px',
    marginLeft: '-320px',
    display: "",
    top: ((($(parent).height() - $(this).outerHeight()) / 2) + $(parent).scrollTop() + "px"),
    left: ((($(parent).width() - $(this).outerWidth()) / 2) + $(parent).scrollLeft() + "px")
}, 1000);
</code>

Antworten auf die Frage(1)

Ihre Antwort auf die Frage