This commit is contained in:
2024-11-20 12:54:11 +07:00
parent 523680a350
commit bb5c579630
2136 changed files with 597821 additions and 8689 deletions
@@ -0,0 +1,22 @@
(function($) {
"use strict";
var tilt_custom = {
init: function() {
const tilt = $('.js-tilt').tilt();
$('.js-destroy').on('click', function () {
const element = $(this).closest('.js-parent').find('.js-tilt');
element.tilt.destroy.call(element);
});
$('.js-getvalue').on('click', function () {
const element = $(this).closest('.js-parent').find('.js-tilt');
const test = element.tilt.getValues.call(element);
console.log(test[0]);
});
$('.js-reset').on('click', function () {
const element = $(this).closest('.js-parent').find('.js-tilt');
element.tilt.reset.call(element);
});
}
};
tilt_custom.init()
})(jQuery);