I'm trying to develop lightbox script for a school project in jQuery and I want to create something similar to the lightbox2 plugin.
I want to create something
like this . As you can see, div resizes and the image loads perfectly, so can anyone explain how to create similar effect in jQuery?