materialize: Parallax not working, as directed
Other js components working. When appended class=‘parallax’, image will disappear. My slim file is like this.
.parallax-container
.parallax
= image_tag 'top_hawaii.jpg', width: '100%'
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 42 (1 by maintainers)
Commits related to this issue
- Fix for issue #210 — committed to jtkDvlp/materialize by jtkDvlp 8 years ago
Seriously, for me, using jQuery 2.2.4 solved the problem. jQuery 3 has a lot of compatible problems now. >.>
for some reason css is:
overriding solved the problem:
on the .css file edit the display property
.parallax img { display: block; }
Same problem:
Version 2.2.4 works for me, thanks
so i got it working. My problem seemed to be the z-index: -1 on parallax. class
Fix: .parallax{ z-index: 0; }
@JGeraldoLima What version of jQuery you are using? If not, please try 2.2.4. 😃
<div class="parallax"><img src="images/cow.jpg" style="transform: translate3d(-50%, 432.451px, 0px);opacity: 1;"></div>
Adding this made the image appear…Damn I REALLY would like to use 3.1 any idea @Dogfalo or any other of the team ? Because #3570 should have solve that.
I had this problem with v0.96.0 - fixed it by adding
…in the head rather than in the footer. Images are now visible, parallax working as expected.