Primer Primer Commit
This commit is contained in:
30
vendor/svganimation/svg.animation.js
vendored
Normal file
30
vendor/svganimation/svg.animation.js
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
(function(){
|
||||
|
||||
|
||||
$(window).on('load',function(){
|
||||
|
||||
var settings = $.extend({
|
||||
type: 'oneByOne',
|
||||
start: 'inViewport',
|
||||
dashGap: 10,
|
||||
duration: 100
|
||||
}, 'body' );
|
||||
|
||||
$('svg' ).each(function() {
|
||||
var iconID = $(this).attr('id');
|
||||
if(iconID != undefined){
|
||||
var iconVar = iconID.replace( '-', '' );
|
||||
window['tc'+iconVar] = new Vivus( iconID, settings );
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$(document).delegate( ".ai-icon", "mouseenter", function() {
|
||||
var iconID = $(this).find('svg').attr('id');
|
||||
if(!iconID) return false;
|
||||
var iconVar = iconID.replace( '-', '' );
|
||||
window['tc'+iconVar].reset().play();
|
||||
});
|
||||
|
||||
});
|
||||
})();
|
||||
7
vendor/svganimation/vivus.min.js
vendored
Normal file
7
vendor/svganimation/vivus.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user