You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,26 @@
1
1
# Scalem JS
2
2
3
-
Scalem, short for __scale elements__ or slang for __scale 'em__, is a light-weight responsive text jQuery plugin inspired by [FlowType](http://simplefocus.com/flowtype/). Use it to "liquify" elements on your website so that they scale relative to the width of their parent element or, optionally, any element you specify (see Options below). Scalem is not just limited to text size—it can be used to scale any CSS style that takes a numeric unit such as px, em, or %.
3
+
Scalem, short for __scale elements__ or slang for __scale 'em__, is a light-weight responsive text jQuery plugin inspired by [FlowType](http://simplefocus.com/flowtype/). Use it to "liquify" elements on your website so that they scale relative to the width of their parent element or, optionally, any element you specify (see Options below). Scalem is not just limited to text size—it can be used to scale any CSS style that takes a numeric unit such as `px`, `em`, or `%`.
4
4
5
5
### [See a demo »](http://thdoan.github.io/scalem/demo.html)
6
6
7
7
## Options
8
8
9
-
Options can be passed via data attributes or JavaScript (see Usage below). For data attributes, append the option name after "data-scale-", for example `data-scale-ratio="1"`.
9
+
Options can be passed via data attributes or JavaScript (see Usage below). For data attributes, append the option name after "data-scale-", for example `data-scale-ratio="0.5"`.
10
10
11
11
Name | Type | Default | Description
12
12
----------- | ------ | ------- | -----------
13
-
`ratio` | number | 0.5 | Scale ratio, where 1 scales the element to 100% the width of the reference element.
13
+
`ratio` | number | 1 | Scale ratio, where 1 scales the element to 100% the width of the reference element.
14
14
`reference` | string | parent | Selector to the reference element (text will scale relative to this element's width).
15
-
`styles` | string | '' | Space-separated list of CSS properties to scale in addition to font-size.
15
+
`styles` | string | '' | Space-separated list of CSS properties to scale in addition to `font-size`.
0 commit comments