All Projects → thdoan → scalem

thdoan / scalem

Licence: MIT license
A jQuery plugin to make any element scalable (responsive).

Projects that are alternatives of or similar to scalem

guillotine
jQuery plugin to crop images within an area (fully responsive), allowing to drag (touch support), zoom and rotate.
Stars: ✭ 321 (+872.73%)
Mutual labels:  jquery-plugin, responsive
Stickystack.js
A jQuery plugin that creates a stacking effect by sticking panels as they reach the top of the viewport.
Stars: ✭ 287 (+769.7%)
Mutual labels:  jquery-plugin, responsive
xGallerify
A lightweight, responsive, smart gallery based on jQuery
Stars: ✭ 52 (+57.58%)
Mutual labels:  jquery-plugin, responsive
vue-responsive-text
↔ Vue component that scales its child node in relation to its parent node's width
Stars: ✭ 23 (-30.3%)
Mutual labels:  scale, responsive
Jquery Calendar
A responsive jquery calendar scheduler built with bootstrap and moment.js
Stars: ✭ 67 (+103.03%)
Mutual labels:  jquery-plugin, responsive
Fitty
✨ Makes text fit perfectly
Stars: ✭ 3,321 (+9963.64%)
Mutual labels:  scale, responsive
Sidr
Sidr is a jQuery plugin for creating side menus and the easiest way for doing your menu responsive.
Stars: ✭ 2,924 (+8760.61%)
Mutual labels:  jquery-plugin, responsive
flutter scale aware
🎗 Scale-based layouts with a bit more ease, powered by extensions.
Stars: ✭ 26 (-21.21%)
Mutual labels:  scale, responsive
Imgviewer
jQuery plugin to zoom and pan images, even those with a size that is a percentage of their container
Stars: ✭ 50 (+51.52%)
Mutual labels:  jquery-plugin, responsive
Jquery.sumoselect
A jQuery Single/Multi Select plugin which can be used on almost any device
Stars: ✭ 527 (+1496.97%)
Mutual labels:  jquery-plugin, responsive
ml-stack-nav
Customizable, responsive, accessible, easy-to-use multi-level stack navigation menu with slide effect.
Stars: ✭ 20 (-39.39%)
Mutual labels:  jquery-plugin, responsive
Jquery Rwdimagemaps
Responsive Image Maps jQuery Plugin
Stars: ✭ 1,511 (+4478.79%)
Mutual labels:  jquery-plugin, responsive
Guillotine
jQuery plugin to crop images within an area (fully responsive), allowing to drag (touch support), zoom and rotate.
Stars: ✭ 318 (+863.64%)
Mutual labels:  jquery-plugin, responsive
Imgnotes
Extension of the jQuery imgViewer plugin to add markers and notes to the image
Stars: ✭ 98 (+196.97%)
Mutual labels:  jquery-plugin, responsive
Restable
jQuery plugin that makes tables responsive converting them to HTML lists on small viewports.
Stars: ✭ 183 (+454.55%)
Mutual labels:  jquery-plugin, responsive
Liteaccordion
A lightweight horizontal accordion plugin for jQuery.
Stars: ✭ 234 (+609.09%)
Mutual labels:  jquery-plugin
book-library
📚 A book library app for both Android & IOS ~ Flutter.dev project in Dart
Stars: ✭ 89 (+169.7%)
Mutual labels:  responsive
Roundslider
roundSlider - A free jQuery plugin
Stars: ✭ 232 (+603.03%)
Mutual labels:  jquery-plugin
Jquery Multiselect
Turn a multiselect list into a nice and easy to use list with checkboxes.
Stars: ✭ 221 (+569.7%)
Mutual labels:  jquery-plugin
hugoblog
Hugoblog is responsive, simple, and clean that would fit for your personal blog based on Hugo Theme Static Site Generator (SSG)
Stars: ✭ 48 (+45.45%)
Mutual labels:  responsive

Scalem JS

Scalem, short for scale elements or slang for scale 'em, is a light-weight responsive text jQuery plugin inspired by 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 %.

See a demo »

NOTE: With increased support for the vw CSS3 property in modern browsers, this plugin should be phased out with vw.

Options

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".

Name Type Default Description
ratio number 1 Scale ratio, where 1 scales the element to 100% the width of the reference element.
reference string parent Selector to the reference element (text will scale relative to this element's width).
styles string '' Space-separated list of CSS properties to scale in addition to font-size.

Usage

<body>
<h1>Scalable Heading</h1>
<p id="txt" data-scale-ratio="0.25">
  Scalable Text
<p>
<p>
  <button class="btn">Scalable Button</button>
</p>
...
<script>
$(document).ready(function() {
  // Scale heading using default options
  $('h1').scalem();
  // Scale text to 25% of the document's width using data attribute
  $('#txt').scalem();
  // Scale button to 50% the width of the <h1>, while also keeping its
  // border ratio and width proportionate, by passing object properties
  $('.btn').scalem({
    ratio: 0.5,
    reference: 'h1',
    styles: 'border-radius border-width'
  });
}
</script>
</body>

Installation

Choose one of the following methods:

  • git clone https://github.com/thdoan/scalem.git
  • bower install scalem
  • npm install scalem
  • Download ZIP
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].