'use strict';
jQuery(document).ready(function() {
   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()
});