🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Responsive Text is a minimalist jQuery plugin designed for responsive web layout that automatically adjusts the font size of your text based on the viewport size of your page.

responsive-text Responsive

Documentation

jquery-responsive-text

JQuery-Plugin for viewport-based font-sizing

Example

 $(document).ready(function() { 	$("h1.responsive").responsiveText({ 		fontSize: '5vw' 	}); });  

Options

NameDescriptionDefault
fontSizeUse css3 vw and vh unit
minFontSizethe minimum font-size12px
maxFontSizethe maximum font-size
bindResizewhether to perform layout on window resize or nottrue

Methods

NameDescriptionReturn
invalidateRefreshes the componentvoid

You May Also Like