Skip to content

Instantly share code, notes, and snippets.

View alippai's full-sized avatar

Ádám Lippai alippai

View GitHub Profile
@csakiistvan
csakiistvan / parallax.js
Created September 1, 2013 13:54
Parallax, like stamfordglobal.com
(function ($) {
Drupal.behaviors.parallaxScrolling = {
attach: function (context) {
$('[data-type]').each(function() {
$(this).data('offsetY', parseInt($(this).attr('data-offsetY')));
$(this).data('speed', $(this).attr('data-speed'));
});
$('div[data-type="background"]').each(function() {