Skip to content

Instantly share code, notes, and snippets.

View JustinWinthers's full-sized avatar

Justin Winthers JustinWinthers

  • Hoozip.com
  • Herndon, Virginia
View GitHub Profile
// smooth scrolling - just put any element with attribut data-smoothscroll='#idToScrollTo'
// requires jQuery
$(function () {
$('[data-smoothscroll]').click(
function (e) {
var target = $(this).attr('data-smoothscroll')
, targetElement = $(target);
@JustinWinthers
JustinWinthers / JSBully-css-shake-tutorial.html
Last active August 29, 2015 13:57
Example from my blog JavaScriptBully.org using the CSS Shake Library. Please do not point to my libraries on my JavaScriptBully server. If you copy this gist, download your own versions.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Description" content="Test app">
<title>JavaScriptBully CSS Shake Example</title>