The first slide in the slider is always blank, right after the page with the slider loads. The first page show up only after the slider has cycled through the other pages.
Could be a result of the error in the JS console that I am seeing on your page.
the one related to pagepiling? It still occurs without it. i can remove the page piling plugin and you can check it out again. It also happened on another build i had with materializecss
update - removed the other plugin. There are no console errors now ... please checkout again
It seems it is a problem with opacity: 0 on the .caption inside the first slide. Not sure right now if this is just a problem on your site or in Materialize.
I haven't set any opacity rules at all in my css for the slider
ps: putting the other plugin code back now. Just wanted to show it still happens without it.
My slider does not work too :( However when I run the plugin code in my console it works fine. Without that I am getting a grey screen.
EDIT: Fixed by adding and <img> tag to the first slide.
Not sure what I did, slider was working? Now the first slide does not show caption on-load. No errors in console and js is triggered but not completed? I do not see velocity-animating until first transition...
On load first slide does not show caption, no velocity-animating changing values:
<li class="active" style="opacity: 1;">
<div class="caption center-align" style="opacity: 0; transform: translateY(-100px);">
</div>
</li>
This does not happen on load, but only after slide cycle has begun...
<li class="velocity-animating active" style="opacity: 0.0594076290273974; transform: translateX(0px) translateY(0px);">
<div class="caption right-align velocity-animating" style="opacity: 0; transform: translateX(100px) translateY(0px);">
</div>
</li>
After slide transition, and velocity-animating changing values, and the slide caption drops in, on all slides, this does not happen on load?
<li class="active" style="opacity: 1; transform: translateX(0px) translateY(0px);">
<div class="caption center-align" style="opacity: 1; transform: translateY(0px) translateX(0px);">
</li>
I had the same issue, I tried to use slider without images and whenever the slider loads it does not immediately show the content of the first slide.
It works with adding an empty img tag.
still affected.
This is still an issue - as others have said, adding an empty <img> tag fixes it, but this is not really an ideal solution. Are there any updates on a fix?
I also encountered this issue. Adding the empty tag fixed it.
Did anyone found a more elegant solution to this?
(cc @Dogfalo )
I got some problem and its wasting my time to find the problem. I fix problem by replacing materialize.js from /bin/ folder! try and tell me if resolved.
Most helpful comment
I had the same issue, I tried to use slider without images and whenever the slider loads it does not immediately show the content of the first slide.
It works with adding an empty img tag.