bianco.force-reflow

[![Build Status][ci-image]][ci-url] [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url]

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
bianco.force-reflow
1.1.02 years ago6 years agoMinified + gzip package size for bianco.force-reflow in KB

Readme

bianco.force-reflow
!Build Statusci-imageci-url !NPM versionnpm-version-imagenpm-url !NPM downloadsnpm-downloads-imagenpm-url !MIT Licenselicense-imagelicense-url

Usage

import forceReflow from 'bianco.force-reflow'

// force the reflow on a single element
forceReflow(document.querySelector('#my-id'))

API

Table of Contents

-   [Parameters](#parameters)
-   [Examples](#examples)

forceReflow

Force the reflow of one or a list of DOM elements

Parameters

Examples

import forceReflow from 'bianco.force-reflow'

// force reflow on a list of elements
forceReflow(document.querySelectorAll('.list'))

// force reflow on a single element
forceReflow(document.querySelector('.post'))

Returns any the argument received