WebisteDLH/wwwroot/js/demos/demo-seo.js

60 lines
1.0 KiB
JavaScript

/*
Name: SEO
Written by: Okler Themes - (http://www.okler.net)
Theme Version: 9.9.2
*/
(function( $ ) {
'use strict';
/*
SVG Morphing
*/
if( $('#shape_one_start').get(0) ) {
var shape1 = KUTE.fromTo('#shape_one_start', {
path: '#shape_one_start'
}, {
path: '#shape_one_end'
}, {
duration: 10000,
easing : 'easingQuadraticInOut',
repeat: 20,
repeatDelay: 1000,
yoyo: true
}).start();
}
if( $('#shape_two_start').get(0) ) {
var shape2 = KUTE.fromTo('#shape_two_start', {
path: '#shape_two_start'
}, {
path: '#shape_two_end'
}, {
duration: 10000,
easing : 'easingQuadraticInOut',
repeat: 20,
repeatDelay: 1000,
yoyo: true
}).start();
}
/*
Form
*/
$('.popup-with-form').magnificPopup({
type: 'inline',
preloader: false,
focus: '#name',
mainClass: 'my-mfp-zoom-in',
callbacks: {
open: function() {
$('html').addClass('lightbox-opened');
},
close: function() {
$('html').removeClass('lightbox-opened');
}
}
});
}).apply( this, [ jQuery ]);