imports/vx/client/code/ux.js
/**
     * Toggle navigation smoothly using hardware animation.
     */
Toggle navigation smoothly using hardware animation.
Toggle navigation smoothly using hardware animation .
toggleNav() {
        if ($("#offcanvas-menu-react").hasClass("navslide-show")) {
            $("#offcanvas-menu-react").removeClass("navslide-show").addClass("navslide-hide")
            $(".navbar").removeClass("navslide-show").addClass("navslide-hide")
            $(".nav-canvas").removeClass("navslide-show").addClass("navslide-hide")
        }
        else {
            $(".nav-canvas").css("position", "relative")
            $("#offcanvas-menu-react").removeClass("navslide-hide").addClass("navslide-show")
            $(".navbar").removeClass("navslide-hide").addClass("navslide-show")
            $(".nav-canvas").removeClass("navslide-hide").addClass("navslide-show")
        }
    }
toggleNav ( ) { if ( $ ( "#offcanvas-menu-react" ) . hasClass ( "navslide-show" ) ) { $ ( "#offcanvas-menu-react" ) . removeClass ( "navslide-show" ) . addClass ( "navslide-hide" ) $ ( ".navbar" ) . removeClass ( "navslide-show" ) . addClass ( "navslide-hide" ) $ ( ".nav-canvas" ) . removeClass ( "navslide-show" ) . addClass ( "navslide-hide" ) } else { $ ( ".nav-canvas" ) . css ( "position" , "relative" ) $ ( "#offcanvas-menu-react" ) . removeClass ( "navslide-hide" ) . addClass ( "navslide-show" ) $ ( ".navbar" ) . removeClass ( "navslide-hide" ) . addClass ( "navslide-show" ) $ ( ".nav-canvas" ) . removeClass ( "navslide-hide" ) . addClass ( "navslide-show" ) } }
Toggle navigation smoothly using hardware animation.
Toggle navigation smoothly using hardware animation .