No FadeIn animation on items loaded by InfiniteScroll

3 replies · opened Aug 18, 2020

WwyesumuAug 18, 2020

Hello!
I faced a minor problem with InfiniteScroll in portfolio widget. Usually when I hover my mouse over portfolio item two buttons appears. But it doesn't work with items just loaded by InfiniteScroll. There's buttons on items but there's no animation when I hover my mouse so buttons stays invisible (opacity: 0).
Also there's this problem even on official site, here's a link: https://themes.semicolonweb.com/html/canvas/portfolio-infinity-scroll.html
My code:


		jQuery(window).on( 'load', function(){

			var $container = $('.grid-container');

			$container.infiniteScroll({
				path: '.load-next-portfolio',
				button: '.load-next-portfolio',
				scrollThreshold: false,
				history: false,
				status: '.page-load-status'
			});

			$container.on( 'load.infiniteScroll', function( event, response, path ) {
				var $items = $( response ).find('.portfolio-item');
				// append items after images loaded
				$items.imagesLoaded( function() {
					$container.append( $items );
					$container.isotope( 'insert', $items );
					setTimeout( function(){
						$container.isotope('layout');
						SEMICOLON.widget.loadFlexSlider();
						SEMICOLON.portfolio.arrange();
						SEMICOLON.initialize.lightbox();
						SEMICOLON.portfolio.portfolioDescMargin();
					}, 1000 );
				});
			});

		});

	
SSemicolon WebSTAFFAug 18, 2020

Hello,

Thanks for reporting this to us!

Consider replacing the following code:


setTimeout( function(){
	$container.isotope('layout');
	SEMICOLON.widget.loadFlexSlider();
	SEMICOLON.portfolio.arrange();
	SEMICOLON.initialize.lightbox();
	SEMICOLON.portfolio.portfolioDescMargin();
}, 1000 );

with the following:


setTimeout( function(){
	$container.isotope('layout');
	SEMICOLON.widget.loadFlexSlider();
	SEMICOLON.widget.hoverAnimation();
}, 1000 );

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

WwyesumuAug 19, 2020

Works perfectly! Thank you a lot!
Add this code to the documentation as well, so no one will face this kind of problem anymore

SSemicolon WebSTAFFAug 20, 2020

Hello,

Glad that the issue was resolved. Very Happy to Help!

We have added this to the Default File and already released an Update.

Do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard