I'm providing code to install a light and simple slider with text content under each slide into your page. You will want to replace everywhere it says https://yourimage in the HTML with your own images. The code below is for 4 images but you can add more if you like. Here is what it will look like and here is the pen to use as a playground.
HTML (goes inside the page modules or below the navigation)
<ul id="lightSlider">
<li>
<div class="lightSlider-image-wrapper">
<a href="#">
<div class="lightSlider-image" title="Image Title" style="background-image:url(https://yourimage);"></div>
</a>
</div>
<div class="lightSlider-text">
Lorem ipsum dolor sit amet.
</div>
</li>
<li>
<div class="lightSlider-image-wrapper">
<a href="#">
<div class="lightSlider-image" title="Image Title" style="background-image:url(https://yourimage);"></div>
</a>
</div>
<div class="lightSlider-text">
Lorem ipsum dolor sit amet. This box is going to have more text than the first one.
</div>
</li>
<li>
<div class="lightSlider-image-wrapper">
<a href="#">
<div class="lightSlider-image" title="Image Title" style="background-image:url(https://yourimage);"></div>
</a>
</div>
<div class="lightSlider-text">
Lorem ipsum dolor sit amet. This box is going to have more text than the first one.
</div>
</li>
<li>
<div class="lightSlider-image-wrapper">
<a href="#">
<div class="lightSlider-image" title="Image Title" style="background-image:url(https://yourimage);"></div>
</a>
</div>
<div class="lightSlider-text">
Lorem ipsum dolor sit amet.
</div>
</li>
</ul>
CSS (goes inside Design Studio)
.lightSlider li {
border-bottom: 3px solid #E75521;
}
.lightSlider-image {
height: 500px;
}
.lightSlider-text {
padding: 30px;
min-height: 200px;
}
JS (Goes in Custom Code bottom)
<script>
x$(document).ready(function() {
x$("#lightSlider").lightSlider({
item: 2,
slideMove: 1,
adaptiveHeight:true
});
});
</script>
ENjoY!
Replies
You rock!
thanks Kos... glad someone found it useful...glad that someone is you!
KOS, Could a slider in my Header "spruce it up"? What do ya think?
Maybe I could add News Feeds? Oh, my brain is starting to see all kinds of use for this!
what do ya think?
I can't even find discussions about 2.0 seriously- when I saw your subject line included 2.0 I was like Yahoo!
But is there still tips for 2.0 somewhere- I do not see it listed... and I need lots of help! If I am stuck with my 2.0- then I might as well try ot make it good!
I love this idea!