Skip to content

Instantly share code, notes, and snippets.

View rgdonohue's full-sized avatar

Rich Donohue rgdonohue

View GitHub Profile
@rgdonohue
rgdonohue / index.html
Last active January 3, 2016 12:49
html5 input range slider
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<style>
@import url(http://fonts.googleapis.com/css?family=Raleway);
body {
@rgdonohue
rgdonohue / README.md
Last active January 4, 2016 03:09
simple JQuery slideshow

This demonstrates a simple slideshow using JQuery, specifically JQuery's animate method. The challenge here is to get the slides to continuously loop forward and in reverse. The layout in this example shows how this is done by first moving the subsequent or preceding slide into position before animating the transition. In an actual implementation, the slides to the right would be hidden from view (such as by setting the overflow property on the #slide-container element to hidden).

@rgdonohue
rgdonohue / README.md
Last active January 4, 2016 06:19
CSS Multi-column Layout

A demonstration of the W3C Candidate Recommendation CSS Multi-column Layout Module. Viewing on a new page allows columns to adjust in a fluid sense, inviting opportunities for implementation in a responsive layout.

@rgdonohue
rgdonohue / README.md
Last active January 4, 2016 06:49
Responsive Images

This demonstrates a responsive image technique using picturefill.js, currently one of the best responsive image solutions available. Essentially it mimics an exciting web standard on the horizon, the proposed picture element, to deliver images at an appropriate size (and bandwidth!) for a given screen size. Read more about responsive image solutions from the filament group.

My demonstration here always makes use of "art direction." I've manually cropped, zoomed, and changed the focal point of each image. View this example in a new window to resize the display.

@rgdonohue
rgdonohue / README.md
Last active August 29, 2015 13:56
SVG Animation with CSS3

This example demonstrates using CSS transition and @keyframes to animate the drawing of a SVG path. Insight garnered from How SVG Line Animation Works.

@rgdonohue
rgdonohue / README.md
Last active February 12, 2021 10:27
Yet another animated choropleth map ...

Map demonstrates using D3.js to draw a world choropleth map and sequence through data of hypothetical timestamps.

@rgdonohue
rgdonohue / README.md
Last active February 27, 2019 03:48
Proportional Symbol Scaling on Zoom

Updating the radius range values using the event scale value to re-size proportional symbols when zooming a map in D3.js. Works okay.

@rgdonohue
rgdonohue / README.md
Last active August 29, 2015 14:16
spotlight filter

Faking a spotlight filter of renewable energy power plants in the US.

@rgdonohue
rgdonohue / README.md
Last active August 29, 2015 14:20
simple spinning loader

This simple example initially loads the page with an opaque div that covers the map and contains an animated loader gif image. Once the data file (10.8MB) has been loaded with an AJAX request, the div is removed using JavaScript.

@rgdonohue
rgdonohue / README.md
Last active February 16, 2017 02:32
Understanding d3 domain and range values

Mapping domain values to range outputs with d3.

d3.scale.threshold()
   .domain([
      10,
      20,
      30,
      40
])