6 lines
1.6 KiB
JavaScript
Executable File
6 lines
1.6 KiB
JavaScript
Executable File
/*!
|
|
* stack-admin-theme (https://pixinvent.com/bootstrap-admin-template/stack)
|
|
* Copyright 2018 PIXINVENT
|
|
* Licensed under the Themeforest Standard Licenses
|
|
*/
|
|
!function(window,document,$){"use strict";$(".buttonAnimation").each(function(){$(this).hover(function(){var data=$(this).attr("data-animation");$(this).addClass("animated "+data)},function(){var data=$(this).attr("data-animation");$(this).removeClass("animated "+data)})}),$(".collapseAnimation").each(function(){$(this).on("click",function(){var data=$(this).attr("data-animation"),href=$(this).attr("href");$(href).addClass("animated "+data)})}),$(".alertAnimation").each(function(){$(this).on("click",function(){var data=$(this).attr("data-animation");$(this).parent(".alert").addClass("animated "+data),$(this).parent("div").one("webkitAnimationEnd oanimationend msAnimationEnd animationend",function(e){$("div").removeClass("animated "+data)})})}),$(".calloutAnimation").each(function(){$(this).on("click",function(){var data=$(this).attr("data-animation");$(this).parent("div").addClass("animated "+data),$(this).parent("div").one("webkitAnimationEnd oanimationend msAnimationEnd animationend",function(e){$("div").removeClass("animated "+data)})})}),$(".cardAnimation .card").appear(),$(document).on("appear",'[data-appear="appear"]',function(){var $item=$(this),animate=$item.data("animation");$item.hasClass("appear-no-repeat")||$item.addClass("animated "+animate)}),$(document).on("disappear",'[data-appear="appear"]',function(){var $item=$(this),animate=$item.data("animation");$item.hasClass("appear-no-repeat")||$item.removeClass("animated "+animate)})}(window,document,jQuery); |