ratiologos

1.0.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i ratiologos

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

1.77 kB

Total Files

3

Last publish

Collaborators

  • rockuman