Ben McMahen's repositories
scroll-to
Smooth window scrolling with requestAnimationFrame and the Tween component
hoverintent
Fire mouse events when the user intends it
skrollr
Stand-alone parallax scrolling library for mobile (Android + iOS) and desktop. No jQuery. Just plain JavaScript (and some love).
mutant
a small wrapper for the MutationObserver which takes selector filters and emits events for insertions and removals
editable
Fixing contenteditable.
mutation-property
return the prefixed mutation observer
insert-at-cursor
cross-browser insert an html string at the cursor position, or over the selected text.
text-selection
determine if a text selection currently exists
set
ES6 Set Polyfill
string-occurrence
find all occurrences of a substring within a string, and return indexes
string-contains
determine if a string contains a substring, and return the start and end indexes if it does
string-highlight
add specified tags, brackets, or whatevs to all matching substring instances within a string
string-splice
simple component for splicing (inserting) a substr in a string
slider
a horizontal slider, or range-slider similar to jquery-ui
wobble
an iOS style infinite-wobble animation
multiple-choice
easily generate multiple choice forms
popup-video
show dom elements at particular points in a video
video-emitter
emit events when video playback reaches specified times
magazine-animations
css transitions for animating elements in magazine.js
living-archives
The living archives website, meant to teach people about the history of eugenics in Western Canada, and its ongoing legacy.
target
cross-browser e.target, because IE8 loves us
magazine-layout
styles to help create your magazine.js layout
magazine-router
a router plugin for magazine.js
itty-bitty-torrent
Deprecated -- use something else
tabs
a small helper for making tab views
zoom
zoom an element from an origin point/size to target point/size
omx-controller
a small wrapper for controlling omxplayer in node
hold
a hold event for mouse and touch