Locomotive Scroll JS - How to?

Greetings everyone,

Can someone help me implement Locomotive scroll JS:
https://github.com/locomotivemtl/locomotive-scroll

I see that there is a CSS file that needs to be added + the js files.

Also I think a class - “data-scroll-container” must be added to the main content container, this would be the “main” html element. I believe this would be achieved with a php function…

If someone had this or a similar problem please help out.

** EDIT **
I found a way to implement it in oxygen, definitely needs a data-scroll-container class to the “main” element…

Can you guys help me out with this maybe? @wplit @timmse

Thanks.

1 Like

You’re looking for this (for adding the attribute)… The rest would be enqueuing the JS/CSS using child theme.

2 Likes

Thanks a lot @wplit! That’s what I was looking for!
Cheers