Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #684314

    Hello,

    I want the accordion slider to stack in mobile mode. I found this post, https://kriesi.at/support/topic/accordion-slider-mobile-3-full-width-underneath-each-other/ and implemented the css and function but it still functioning improperly. They stack properly, however still have the sliding function (which I would like to eliminate after they stack) and is covering content that is below it. Can you guys take a look? http://www.ind-image-demo.com/triton/ .

    Thank you,
    Chris

    #685163

    Hi ind-image!

    Thank you for using Enfold.

    Disable the animation with the following css code.

    @media only screen and (max-width: 767px) {
    #top .aviaccordion.av-animation-active .aviaccordion-slide, #top .aviaccordion-title-on-hover .aviaccordion-preview {
        transform: translate3d(0%, 0px, 0px) !important;
    }
    }

    Add this in the functions.php file:

    function ava_add_custom_script(){
    ?>
    <script>
    (function($){
    	function b() {
       		var acch1 = 0,
       		    ww 	  = $(window).innerWidth();
                        console.log(ww);
    		if (ww >= 768) {
    			$('#accordion_slider_0 + #after_full_slider_0t').css('margin-top', 0);
    		} else {
    			$('#accordion_slider_0 .aviaccordion-slide:not(":first-child")').each(function() {
    				acch1 += $(this).height();
    			});
    
    			$('#accordion_slider_0 + #after_full_slider_0').css('margin-top', acch1);
    		}	
    	}
    
       	$(window).on('debouncedresize', function() {
       		b();
       	});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_add_custom_script');

    Regards,
    Ismael

    #685190

    Hi Ismael,

    Thanks for your help! Animation is gone, but the slides are still covering content below. I messed with the margin a little and got it to work, but it seems that I will have to put a custom bottom margin in at a bunch of different screen sizes. Is there an easier way to do this? I removed my margin css so you can see the issue.

    Thank you,
    Chris

    #685890

    Thank you for your help! No other replies are necessary. This ticket can be closed.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Accordian Menu Stack in Mobile’ is closed to new replies.