Skip to content

A collection of simple DOM utilities for those who prefer a Vanilla JS approach.

License

Notifications You must be signed in to change notification settings

ronik-design/vanillajs-dom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vanillajs-dom

A collection of simple DOM utilities for those who prefer a Vanilla JS approach.

Installation

This is how I use it with a Webpack bundled project. Your set-up may be different.

$ npm install vanillajs-dom --save-dev
import { parents, parent, outerHeight, scrollTop } from "vanillajs-dom";

parents(element, ".selector[data-type=foo]");
parent(element, ".selector[data-type=foo]");
outerHeight(element);
scrollTop();

About

A collection of simple DOM utilities for those who prefer a Vanilla JS approach.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published