🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

fluidfont

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluidfont

small library for responsive font

latest
npmnpm
Version
0.4.1
Version published
Maintainers
1
Created
Source

fluidfont

Build Status Coverage Status GitHub version License

FluidFont

small library for responsive font

npm i fluidfont

Usage

FluidFont = require 'fluidfont'

new FluidFont opts

or

<script src="fluidfont.js"></script>
<script>
  new FluidFont(opts);
</script>

View on RequireBin

view on requirebin

Config

default options

var options = {
  target: document.body, // DOM Element
  baseWidth: 640, // Integer
  baseSize: '1em', // String, CSS font-size value
  delay: 300, // Integer
  delayType: 'debounce', // String, 'debounce' or 'throttle'
  afterResize: function() {}, // Function
  beforeResize: function() {} // Function
};

api

ff.resize(width)

Resize font

ff.off()

Unbind from resize event of window

Alias: ff.unbind(), ff.rmEvent()

ff.on()

Re add resize event of window

Alias: ff.events(), ff.addEvent()

Contributing

deps

  • bean
  • debounce
  • throttleit

dev deps

  • browserify
  • coffee-script
  • coffeeify
  • derequire
  • espower-coffee
  • jsdom
  • mocha
  • power-assert
  • uglify-js
npm test

Incomplete is test

License

MIT

© sugarshin

FAQs

Package last updated on 23 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts