@ribarich/web-utils
v1.0.2
Published
Various web utilities.
Downloads
1
Readme
Ribarich web utils
FlexObserver
Flex observer allows you to detect when some flex elements wrap.
import { FlexObserver } from '@ribarich/web-utils'
const observer = new FlexObserver()
const config = {
flexContainer: document.querySelector('.flex-container')
changeCallback: ( wrappedElements ) => { // Do something with elements that wrapped }
}
observer.observe(config)