JSFiddle - React, Tailwind, and code Playground

JavaScript

// Habe einen fork des elastic jQuery Plugins (https://gist.github.com/2421882/6a0aae7bb7fabbc0535555997f24838c932bcb51) gefunden, der ein callback hinzufĂĽgt, und zwar so:

// Callback function
    
if (options.callback && typeof options.callback == 'function') {
    options.callback;
} 
    
// Habe versucht das so zu nutzen:
    
$(this).elastic({
    callback: function() {
        console.log('FUCKYEAH');
    }
});


// Oder so:
    
$(this).elastic(function() {
    console.log('FUCKYEAH');
});