Tagged: ,

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

    Hello Kriesi Team,

    on my homepage the image animations are triggered much too late. I have also found out why. It is because I always have two versions for the layer sliders on the page. One for desktop and one for mobile. That actually works. But your theme, as it looks like, includes the hidden sliders in the calculation of the center. If I create the page with only one slider at a time, the images will appear in time. Basically it is exactly the same problem as in this thread.
    https://kriesi.at/support/topic/animation-triggers-late.But the workaround does not work for me.

    #1242564

    Hey Ostsys,

    Thank you for the inquiry.

    The very last script in the previous thread should detach the other full width slider on the page depending on the current screen width. To make it work for the layer slider, we only need to adjust the selector. Please try this snippet in the functions.php file.

    function ava_custom_script_mod(){
    	?>
    	<script>
    		(function($){
    			$(document).ready(function() {
    				var windowWidth = window.innerWidth;
    				if (windowWidth < 989) {
    					$('#layer_slider_1').detach();
    				} else {
    					$('#layer_slider_2').detach();
    				}
    			});
    		})(jQuery);
    	</script>
    	<?php
    	}
    add_action('wp_footer', 'ava_custom_script_mod');
    

    Best regards,
    Ismael

    #1268057

    Sorry for the late reply. That has helped. Thank you very much.

    Best regards

    René

    #1268305

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Animations trigger late’ is closed to new replies.