Skip to content

Latest commit

 

History

History
117 lines (79 loc) · 7.8 KB

README.md

File metadata and controls

117 lines (79 loc) · 7.8 KB

Awesome ‘Vanilla’ Javascript Awesome

A simple listing of plain‘Vanilla’ — Javascript resources. Because sometimes you don't need a big library such as jQuery (which remains awesome IMO).

P.S. ‘Vanilla’ JS is not ‘better’ than jQuery et. al! jQuery is a very good library. It can be argued that many plugins and functions in the resources below are ‘worse’: less well documented, tested, less cross-browser compatibility, etc. However: sometimes a swiss-army knife monolith such as jQuery is too much. Tiny, reusable & modular modules FTW!

Contents

Components

Accordion

aka Collapsible

Carousel

  • SwiperJS - "The most modern mobile touch slider"
  • Flickity - "Touch, responsive, flickable carousels"
  • Vanilla JS Carousel - "Tiny JavaScript carousel with all the features most of us will ever need."

Drag and drop

  • SortableJS - JavaScript library for reorderable drag-and-drop lists

Dropdowns

  • Slim Select - Slim advanced select dropdown.
  • tail.select - A multiselect component with a lot of options.
  • Choices - A lightweight, configurable select box/text input plugin.
  • Vanilla JS Dropdown - Tiny JavaScript replacement for <select> that makes styling easy and consistent.

File Uploaders

  • Filepond - "A JavaScript library that can upload anything you throw at it, optimizes images for faster uploads, and offers a great, accessible, silky smooth user experience."

Modals

  • Micro Modal - A lightweight, configurable and a11y-enabled modal.

ScrollSpy

  • Gumshoe - Update a nav list based on scroll position.

Switches

  • Simple Switch - Simple, accessible, performant implementation of the Switch UI element.

Table of Contents

  • Tocbot - Generate a table of contents based on the heading structure of an html document

Tabs

  • Tabby - Lightweight, accessible vanilla JS toggle tabs.
  • Vanilla JS Tabs - Vanilla JavaScript Tabs - simple and awesome.

Tooltips

aka Popovers

  • TippyJS - "The complete tooltip, popover, dropdown, and menu solution for the web"
  • Vanilla JS Tooltip - Vanilla Javascript tooltip. Accepts plain text and fancy HTML.

Lists

Listing native methods, functions and plugins

Articles

Articles on moving away from jQuery towards native Javascript

Code

Little Vanilla snippets—or microlibraries—of goodness

  • Buoy - A lightweight collection of helper methods for getting stuff done in native JavaScript.
  • Min.js - A super tiny JavaScript library to execute simple DOM querying and hooking event listeners by Remy Sharp
  • Bind.js - Two way data binding for HTML and JavaScript (with node.js compatibility) with additional support for transforming data before it arrives in the DOM. By Remy Sharp
  • Bling.js - Paul Irish adds $ (qSA) and .on in a few lines of goodness. Check comments for more (Promise, etc.)

Your turn!

Again, do you know of other awesome resources? Discuss, PR or Tweet @valuedstandards

Thanks, David Hund