Search code examples
jqueryflip

JQuery Flip cancel feature


I'm using the Flip plugin with Jquery and I need to make sure that certain element loses the inversion functionality. I've tried the following possibilities but not success:

$("#element").off();

$("#element").off(".flip");

Plugin: https://nnattawat.github.io/flip/


Solution

  • I think it was a question of better understanding of the plugin for me, I did the following:

    $("#element").flip({ trigger: "manual" });
    

    In this way all flip actions should be called manually (no longer by mouse action) by following the necessary logic code, using the following actions:

    $("#element").flip(false); // Back
    
    $("#element").flip(true); // Front
    
    $("#element").flip("toogle"); // Inversion
    

    Att;