0

Here below I'm trying to insert the tilt destroy method for jquery but I can't do it...

It's not clear for me this line of code that I get on the official website

(const tilt = $('.js-tilt').tilt()
tilt.methods.destroy.call(tilt);)

can you help, please?

$( function() {

    //start titl  
    const tilt = $('.items').tilt({scale: 1.2});

    $( ".items1" ).draggable({ revert: true },{ 
        start: function() {

          // i dont know how to destroy or disable titl.js on start
        },
        drag: function() {

         // items.tilt.destroy.call(items);
         // i dont know how to destroy or disable titl.js on drag
        },
        stop: function() {

            $(".about").show();

           // if destroy method wors probably i need to re-enable it
           // restart titl when drag is finished 
           const tilt = $('.items').tilt({scale: 1.2});
        }
    });
});
Jainil
  • 1,488
  • 1
  • 21
  • 26

0 Answers0