Item appear style - on page load instead of on view appear

Tanguy's picture
Tanguy
Thu, 04/05/2018 - 10:05
#1
Item appear style - on page load instead of on view appear

Hi,

the "item appear style" is launched on page load instead of on view appear. I have two portfolios in the bottom of a page and, the time to scroll to them, all the items are already displayed. Is it possible to change the appearance effects to be launched when the view is on screen?

Thanks 

cindy's picture
cindy
Thu, 04/05/2018 - 22:39

Hi,

Please check your email for updated version

cindy's picture
cindy
Fri, 04/06/2018 - 06:44

Hi there,

Please open file md_portfolio/js/md_portfolio.js
Replace line:  

mdr_load_scroll: function(context, settings, id) {

with:

 mdr_load_scroll: function(context, settings) {
cindy's picture
cindy
Wed, 04/11/2018 - 04:42

Hi,

 in function mdr_load_scroll, please search:

var gridContainer = $(this).closest('.view').find('.view-content').find('[id^="mdp-grid-"]');

add the following code right after the code above

var id = gridContainer.attr('id'); 
Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.