Picture of Russell Rivera
Show only visited component
by Russell Rivera - Thursday, 12 December 2019, 5:12 PM
 

Hi,

Is there a way that we can use a parallax effect every time we scroll a component or visited. A component using a the page level progress. It will only focus on the current component preview so the user won't see the previous and next component. Or not necessary with the use of Parallax effect it can be another way to do it thanks.

Regards,

Russell Rivera


Picture of Matt Leathes
Re: Show only visited component
by Matt Leathes - Thursday, 12 December 2019, 5:59 PM
 

Possibly you could do something like add a class to make all blocks invisible by default then use the _onScreen settings of the block to add a class that shows it when it scrolls into view? There's an example of _onScreen being used in the Adapt v5 demo - see block b-05 (note that it's something available in earlier versions as well if you're not using v5)

Picture of Russell Rivera
Re: Show only visited component
by Russell Rivera - Thursday, 12 December 2019, 6:46 PM
 

Thanks Matt I did a different approach.