Full Screen with text #445
-
Hi, I really enjoy using splide for all different kinds of sliders. How would this be possible and if so could be interesting to add to the tutorials page as well. Thank you, |
Beta Was this translation helpful? Give feedback.
Answered by
NaotoshiFujita
Oct 19, 2021
Replies: 1 comment 1 reply
-
The easiest way is using the <div id="your-slider" class="splide">
<div class="splide__track">
<ul class="splide__list">
<li class="splide__slide">
<img src="image.jpg" alt="...">
<p>Text text text</p>
</li>
</ul>
</div>
</div>
<script>
var splide = new Splide( '#your-slider', {
width: '100vw',
height: '100vh',
cover: true,
} );
</script> Without the option, you can use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
timsun28
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The easiest way is using the
cover
option:Without the option, you can use
absolute
andz-index
for texts just like a normal CSS way.