Home » Source Code » JQuery plugin to fit images into container

JQuery plugin to fit images into container

2016-05-20 10:38:46
The author
Download(s): 0
Point (s): 1 
Category Category:


The aim is to solve the common problem how to fit rectangle into square This plugin accepts a mode parameter "pan" or "fit"

"fit" - fits the image inside the container in a way that alway full image is visible

"pan" - scale image to show the biggest possible area

Usage: $(selector).imageFit("fit");or$(selector).imageFit("pan");

Demo page: demo

Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
Sponsored links


(Add your comment, get 0.1 Point)
Minimum:15 words, Maximum:160 words
  • 1
  • Page 1
  • Total 1

JQuery plugin to fit images into container (2.99 kB)

Need 1 Point(s)
Your Point (s)

Your Point isn't enough.

Get 22 Point immediately by PayPal

Point will be added to your account automatically after the transaction.

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more Points


Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com


CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D