Skip to content

biancojs/force-reflow

Repository files navigation

bianco.force-reflow

Build Status NPM version NPM downloads MIT License

Usage

import forceReflow from 'bianco.force-reflow'

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

API

Table of Contents

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