1
2
(function($){
A very simple snippet (and my first authored plugin!) that I use all the time to keep my font responsive across all devices. Simply target the element with the font you want autoscaled, determine the scale ratio (e.g. 1-9999999999) and choose the element container to reference. By default the plugin will reference the target element's parent. TIP: Assigning IDs and classes to your elements makes this plugin VERY useful!
Example: $("h3").scaledFont();
Options: container, scale
Example: $("h3").scaledFont();
Options: container, scale
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.