positioned

Callback when an element has a position

Usage no npm install needed!

<script type="module">
  import positioned from 'https://cdn.skypack.dev/positioned';
</script>

README

positioned

Callback when an element is in the document and has a position.

Usage

var positioned = require('positioned');

positioned(element, function() {
    // called when the element is in the document and has a position.
});