Skip to content

Instantly share code, notes, and snippets.

View COLABORATI's full-sized avatar

COLABORATI

View GitHub Profile
@COLABORATI
COLABORATI / typeform-velocity.js
Created June 28, 2016 21:12 — forked from nathanhornby/typeform-velocity.js
Scroll to active field in form (typeform style animation) using velocity.js
// Insert into some kind of 'focus' action
var parent = $(this).parent().parent('.fieldWrap'); // Target a wrapper
// Reset active state
$('.fieldWrap').removeClass('active');
// Add active state to current field
parent.addClass('active');
@COLABORATI
COLABORATI / scroll2.js
Created June 28, 2016 21:12 — forked from nathanhornby/scroll2.js
Velocity.js jQuery smooth scroll to #id
/* Scroll2
=======================
Takes one argument, `speed`. Defaults to 500.
Examples:
$('.scroll2').scroll2(); // <a href="#contact" class="scroll2">Contact me</a>
$('#scrollToTop').scroll2(700); // <a href="#header" id="scrollToTop">Scroll to top</a>
@COLABORATI
COLABORATI / magnific-velocity.js
Created June 20, 2016 22:36 — forked from nathanhornby/magnific-velocity.js
Magnific popup with velocity.js animation boilerplate
$.magnificPopup.open({
items: {
src: '#popup',
type: 'inline'
},
removalDelay: 400,
callbacks: {
open: function () {
this.content.velocity('transition.slideDownIn', {
duration: 400
@COLABORATI
COLABORATI / wp-setup-joints
Created October 4, 2015 20:41
setup wpjoints.com theme and change bower_components path to com
#!/bin/bash
# setup the jointswp.com zurb foundation wordpress theme
echo 'This script will: '
echo '* git clone the jointswp.com wordpress theme into a given directory'
echo '* checkout into a new branch called dev-local'
echo '* replace the default bower_components directory with "com"'
echo 'Use this command in your wordpress theme directory - no checks !!!'
if [ -z "$1" ]
then