1.0.0 • Published 6 years ago

ratiologos v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

What is this?

A simple module that, given some logos images, resize them so that they appear in harmony when placed on a row / grid.

Installation

npm i ratiologos

How to use

import { ratiologos } from 'ratiologos'

ratiologos({
    element: '.logos__img',
    // other options
});

Options

  • element: The elements that you want to resize;
  • widthBase: The base width for the elements, defaults to 100;
  • scaleFactor: The scale factor for the elements, defaults to 0.525;

Avoid FOUC

In orther to avoid FOUC, you should set the initial display property on your elements to none.

1.0.0

6 years ago