0.3.0 • Published 2 months ago

fit-html-text v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

fit-html-text

CI

Fit text into its surrounding container.

Usage

import { fitText } from "fit-html-text";

const element = document.getElementById("myElement");

fitText(element, {
    fontMinSize: 8,
    fontMaxSize: 72,
    containerMaxWidth: 300,
    containerMaxHeight: 300,
    multipleLines: false,
});

Usage for Browsers

Source

Demo Page

License

MIT

0.3.0

2 months ago

0.2.3

1 year ago

0.2.4

1 year ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago