mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-09 06:46:10 +01:00
44 lines
957 B
JavaScript
Executable File
44 lines
957 B
JavaScript
Executable File
$(document).ready(function(){
|
|
|
|
/* jQuery Animation */
|
|
|
|
$(function(){
|
|
|
|
$('.animation-toggle').click(function(){
|
|
|
|
var animationEFFECT = $(this).attr('data-animation');
|
|
var animationTARGET = $(this).attr('data-animation-target');
|
|
|
|
$(animationTARGET).addClass('animated');
|
|
$(animationTARGET).addClass(animationEFFECT);
|
|
$(animationTARGET).removeClass('hide');
|
|
|
|
|
|
var wait = window.setTimeout( function(){
|
|
$(animationTARGET).removeClass('animated');
|
|
$(animationTARGET).removeClass(animationEFFECT);
|
|
$(animationTARGET).addClass('hide')},
|
|
|
|
1300
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
/* Photo Gallery hover */
|
|
|
|
$('.thumbnail-box').hover(function(){
|
|
|
|
$('.thumbnail-overlay', this).fadeIn('fast');
|
|
$('.thumbnail-content', this).slideDown('fast');
|
|
|
|
},
|
|
function(){
|
|
|
|
$('.thumbnail-overlay', this).fadeOut('fast');
|
|
$('.thumbnail-content', this).slideUp('fast');
|
|
|
|
});
|
|
|
|
}); |