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 |