imgLiquid

A jQuery Plugin to resize images to fit in a container.

Features:

  • Align
  • Crop/Fill
  • FadeIn
  • All browsers (Incl. ie6)

Options:

  • js -> fill: true, verticalAlign: ‘center’, //’top’ // ‘bottom’ horizontalAlign: ‘center’, // ‘left’ // ‘right’ fadeInTime: 0, responsive: false
  • css -> (set useCssAligns: true) (overwrite js) text-align: center vertical-align : middle
  • hml5 data attr (overwrite all) -> data-imgLiquid-fill=’true’ data-imgLiquid-horizontalAlign =’center’ data-imgLiquid-verticalAlign’ =’center’ data-imgLiquid-fadeInTime = ’1000′

Similar Posts