Linux 软件免费装

FitText.js, a jQuery plugin for inflating web type

开发者 Ramoonus
更新时间 2016年7月31日 17:42
捐献地址: 去捐款
PHP版本: 3.9 及以上
WordPress版本: 4.6

标签

javascript jquery html5 css3 fittext

下载

1.0.0 1.2

详情介绍:

FitText makes font-sizes flexible. Use this plugin on your fluid or responsive layout to achieve scalable headlines that fill the width of a parent element. For more information visit fittextjs.com From 1 October 2016 on, this plugin is no longer supported. Please use Powerpack instead. Implementation Here is a simple FitText setup: $("#responsive_headline").fitText(); Pretty Cool. Your text should now resize based on the width of the parent element. By default: Font-size = 1/10th of the parent element's width. The Compressor If your text is resizing poorly, you'll want to turn tweak up/down "The Compressor". It works a little like a guitar amp. The default is 1. $("#responsive_headline").fitText(1.2); // Turn the compressor up (text shrinks more aggressively) $("#responsive_headline").fitText(0.8); // Turn the compressor down (text shrinks less aggressively) This will hopefully give you a level of "control" that might not be pixel perfect, but scales smoothly & nicely. new: minFontSize & maxFontSize FitText now allows you to specify two optional pixel values: minFontSize and maxFontSize. Great for situations when you want responsive text but also need to preserve hierarchy. $("#responsive_headline").fitText(1.2, { minFontSize: '20px', maxFontSize: '40px' }) CSS Tips

安装:

  1. Upload fixtext/ to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

更新日志:

1.2 1.1 1.0.0