Title: support.transition function breaks bootstrap nav collapse
Last modified: August 22, 2016

---

# support.transition function breaks bootstrap nav collapse

 *  [webdotcom](https://wordpress.org/support/users/webdotcom/)
 * (@webdotcom)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/supporttransition-function-breaks-bootstrap-nav-collapse/)
 * Author:
 * This code in assets/js/other-shortcodes.js
 *     ```
       // jQuery.support.transition
       	// to verify that CSS3 transition is supported (or any of its browser-specific implementations)
       	$.support.transition = (function () {
       		var thisBody = document.body || document.documentElement,
       			thisStyle = thisBody.style,
       			support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined;
   
       		return support;
       	})();
       	// Animations is supported
       	if ($.support.transition) {
       		// Animate
       ```
   
 * Breaks the bootstrap nav collapse. Can you fix this asap please?
    Replacing that
   with this:
 *     ```
       // jQuery.support.transition
       	// to verify that CSS3 transition is supported (or any of its browser-specific implementations)
       	function supportstrans() {
       		var thisBody = document.body || document.documentElement,
       			thisStyle = thisBody.style,
       			support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined;
   
       		return support;
       	}
   
       	// Animations is supported
       	if (supporttrans()) {
       		// Animate
       ```
   
 * Fixes the issue. I have to go ahead and make that change to the js file for now,
   but it would be very much appreciated if you’d fix that in your next release.
 * Please reply as soon as possible and confirm, so that I know client sites won’t
   get messed up with the next update from you.
 * Thank you
 * [https://wordpress.org/plugins/shortcodes-ultimate/](https://wordpress.org/plugins/shortcodes-ultimate/)

The topic ‘support.transition function breaks bootstrap nav collapse’ is closed 
to new replies.

 * ![](https://ps.w.org/shortcodes-ultimate/assets/icon-256x256.gif?rev=2547563)
 * [Shortcodes Ultimate - Content Elements](https://wordpress.org/plugins/shortcodes-ultimate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcodes-ultimate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcodes-ultimate/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcodes-ultimate/reviews/)

## Tags

 * [collapse](https://wordpress.org/support/topic-tag/collapse/)

 * 0 replies
 * 1 participant
 * Last reply from: [webdotcom](https://wordpress.org/support/users/webdotcom/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/supporttransition-function-breaks-bootstrap-nav-collapse/)
 * Status: not resolved