first commit

This commit is contained in:
dev-chiefworks
2022-05-31 16:21:53 -04:00
commit f76abffdcd
5978 changed files with 1078901 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
/* ------------------------------------------------------------------------------
*
* # Velocity.js UI
*
* Specific JS code additions for extension_velocity_ui.html page
*
* Version: 1.0
* Latest update: Aug 1, 2015
*
* ---------------------------------------------------------------------------- */
$(function() {
// Run animations
$('.velocity-animation').on('click', function (e) {
// Get animation class and panel
var animation = $(this).data("animation");
// Add animation class to panel element
$(this).parents(".panel").velocity("callout." + animation, { stagger: 500 });
e.preventDefault();
});
// Run transitions
$('.velocity-transition').on('click', function (e) {
// Get animation class and panel
var transition = $(this).data("transition");
// Add animation class to panel element
$(this).parents(".panel").velocity("transition." + transition, {
stagger: 1000,
duration: 1000
});
e.preventDefault();
});
// Clear styles after 2 seconds
window.setInterval(function(){
$('.velocity-transition').parents('.panel').removeAttr('style');
}, 2000);
});