I added a paralla code to my page, but the images don’t appear, when I remove the class “parallax” from container of the image, images appear but without the parallax effect,
<div class="parallax-container">
<div class="parallax"><img src="content/img/wood.jpg"></div>
</div>
<div class="section white">
<div class="row container">
<h2 class="header">Parallax</h2>
<p class="grey-text text-darken-3 lighten-3">Parallax is an effect where the background content or image in this case, is moved at a different speed than the foreground content while scrolling.</p>
</div>
</div>
<div class="parallax-container">
<div class="parallax"><img src="content/img/wood.jpg"></div>
</div>
<script type="text/javascript">
var elem = document.querySelector('.parallax');
var instance = M.Parallax.init(elem, options);
// Or with jQuery
$(document).ready(function(){
$('.parallax').parallax();
});
</script>
Your setup looks to be ok, but are you calling your initialization after you reference the scripts? Without seeing the page itself that is my first guess.
On the most basic level it does work with all the base libraries you showed you have loaded. There appears to be no conflicts and it is working.
In re-looking at your original post you have two initialization setups listed with an “or” between them. I am assuming you were showing things you tried and were not in fact actually using both together. The first being plain JS and the other using JQuery. If you are loading JQuery then you can just use that to initialize things.
Here is a basic working example with the libraries you listed:
So your problem perhaps is somewhere else in your: app.js , style.css, etc., its nothing specific with Pinegrow and will be difficult for anyone to diagnose here.