Fast, mobile-friendly and responsive lightbox with CSS3 animations.
Forked from Andrzej Dubiel's Pen Magnific Popup + Animate.css.
// 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'); |
/* 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> |
Fast, mobile-friendly and responsive lightbox with CSS3 animations.
Forked from Andrzej Dubiel's Pen Magnific Popup + Animate.css.
$.magnificPopup.open({ | |
items: { | |
src: '#popup', | |
type: 'inline' | |
}, | |
removalDelay: 400, | |
callbacks: { | |
open: function () { | |
this.content.velocity('transition.slideDownIn', { | |
duration: 400 |
#!/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 |