Skip to content

Instantly share code, notes, and snippets.

@robsonsobral
robsonsobral / bubble-range.js
Created March 23, 2017 20:14 — forked from dmolsen/bubble-range.js
jQuery-less version of Chris Coyier's Value Bubbles for Range Inputs
/**********************************************************
* jQuery-less version of Chris Coyier's
* Value Bubbles for Range Inputs
* http://css-tricks.com/value-bubbles-for-range-inputs/
**********************************************************/
function modifyOffset() {
var el, newPoint, newPlace, offset, siblings, k;
width = this.offsetWidth;
newPoint = (this.value - this.getAttribute("min")) / (this.getAttribute("max") - this.getAttribute("min"));
@robsonsobral
robsonsobral / inline-block-example.html
Created July 29, 2011 04:29 — forked from necolas/inline-block-example.html
Inline-block layout component
<div class="ibw">
<div class="ib">inline block</div>
<div class="ib">inline block</div>
<div class="ib">inline block</div>
</div>