I'm having trouble getting the easing property for toggleClass work. I searched this site and others, but still I canโt get it to work as expected. The class switches just fine, but it does not relax or smoothly.
Here is my sample code: DEMO
Here are (all) the scripts that are loading in my project:
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.js"></script> <script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/js/bootstrap.min.js"></script> <script src="https://gitcdn.imtqy.com/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js"></script>
I have a suspicious suspicion that it has something to do with the scripts that I download (or maybe not download?), Because I looked at the code several times and compared it directly with jQuery docs. I am also very new to jQuery.
What I'm trying to accomplish looks like a clamshell effect. When the page is loaded, the <div> displayed or hidden depending on the value taken from the database, and the flag is used to switch the <div> to open or close.
source share