I don’t know how much you know about plugin animsition. This article shares with you the usage of jQuery plugin animsition through example code. It is very good and has reference value. Friends who need it can refer to it. I hope it can help everyone.
Usage arrangement
The effect achieved is a transition effect of various different effects
##
<p class="animsition"> <p class="item bg-indigo"> <h1>Animsition: Sandbox</h1> </p> <h2>Defaults</h2> <ol> <li><a class="animsition-link" data-animsition-out-class="rotate-out" data-animsition-out-duration="500" href="page1.html" rel="external nofollow" >Basic</a></li> <li><a class="animsition-link" data-animsition-out-class="rotate-out" data-animsition-out-duration="500" href="page2.html" rel="external nofollow" >Options</a></li> </ol> </p> <script src="jquery-3.2.1.min.js"></script> <script src="js/animsition.js"></script> <script> $(document).ready(function() { $(".animsition").animsition({ inClass: 'flip-in-y', outClass: 'flip-out-y', inDuration: 1500, // outDuration: 800, linkElement: '.animsition-link', // e.g. linkElement: 'a:not([target="_blank"]):not([href^="#"])' loading: false, loadingParentElement: 'body', //animsition wrapper element loadingClass: 'animsition-loading', loadingInner: '', // e.g '<img src="loading.svg" />' timeout: false, timeoutCountdown: 5000, onLoadEvent: true, browser: [ 'animation-duration', '-webkit-animation-duration'], // "browser" option allows you to disable the "animsition" in case the css property in the array is not supported by your browser. // The default setting is to disable the "animsition" in a browser that does not support "animation-duration". overlay : false, overlayClass : 'animsition-overlay-slide', overlayParentElement : 'body', // transition: function(url){ window.location.href = url;} }); }); </script>
jQuery UI date picker Datepicker detailed explanation
jQuery implementation of table front-end sorting function detailed explanation
Detailed examples of defects and solutions for jQueryMobile form long content
The above is the detailed content of Example sharing jQuery plugin animsition usage summary. For more information, please follow other related articles on the PHP Chinese website!