On my HTML page, there is one div and a small round image. Initially, the div has a scale of 0 so it is not displayed. However, when I click on the small image, the div scales to 1 in the middle of the window. The position of my div is absolute. My issue now is that when I scale the div to 1, it does so from the center of the window. What I want is for it to scale from the small image, giving the appearance that the window opens from that small image. Additionally, the small image is draggable.
This is a snippet of my code:
$('.divclass').css('transform','scale(1)');