Skip to content

libeo-vtt/jquery-flowtext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery FlowText Plugin

jQuery plugin for responsive font-size

Usage

  1. Include jQuery:

    <script src="path/to/jquery.min.js"></script>
  2. Include plugin's code:

    <script src="path/to/jquery.flowtext.js"></script>
  3. Call the plugin:

    // Default configuration
    $('.flowtext-element').flowtext();
    
    // Custom configuration
    $('.flowtext-element').flowtext({
    	minFontSize: 16,
    	maxFontSize: 20,
    	minScreenWidth: 320,
    	maxScreenWidth: 1024
    });

Downloads

Configuration

minFontSize

Type: Integer
Default value: 16

Minimum flowtext font-size


maxFontSize

Type: Integer
Default value: 20

Maximum flowtext font-size


minScreenWidth

Type: Integer
Default value: 320

Minimum screen width for flowtext


maxScreenWidth

Type: Integer
Default value: 1024

Maxiumum screen width for flowtext


History

Check Releases for detailed changelog.