Jquery news slider
Here are a few examples of jQuery news sliders:
- Owl Carousel: A popular and highly customizable jQuery plugin for creating responsive carousels and sliders.
Example:
<div class="owl-carousel owl-theme">
<div class="item"><h2>News Item 1</h2><p>Lorem ipsum dolor sit amet...</p></div>
<div class="item"><h2>News Item 2</h2><p>Lorem ipsum dolor sit amet...</p></div>
<div class="item"><h2>News Item 3</h2><p>Lorem ipsum dolor sit amet...</p></div>
</div>
<script>
$(document).ready(function() {
$(".owl-carousel").owlCarousel({
loop: true,
margin: 10,
nav: true,
responsive: {
0: {
items: 1
},
600: {
items: 3
}
}
});
});
</script>
- Slick Slider: A fast and lightweight jQuery plugin for creating responsive sliders and carousels.
Example:
<div class="slider">
<div><h2>News Item 1</h2><p>Lorem ipsum dolor sit amet...</p></div>
<div><h2>News Item 2</h2><p>Lorem ipsum dolor sit amet...</p></div>
<div><h2>News Item 3</h2><p>Lorem ipsum dolor sit amet...</p></div>
</div>
<script>
$(document).ready(function() {
$(".slider").slick({
dots: true,
infinite: true,
speed: 300,
slidesToShow: 3,
responsive: [
{
breakpoint: 600,
settings: {
slidesToShow: 1
}
}
]
});
});
</script>
- Flexslider: A popular and highly customizable jQuery plugin for creating responsive sliders and carousels.
Example:
<div class="flexslider">
<ul>
<li><h2>News Item 1</h2><p>Lorem ipsum dolor sit amet...</p></li>
<li><h2>News Item 2</h2><p>Lorem ipsum dolor sit amet...</p></li>
<li><h2>News Item 3</h2><p>Lorem ipsum dolor sit amet...</p></li>
</ul>
</div>
<script>
$(document).ready(function() {
$(".flexslider").flexslider({
animation: "slide",
directionNav: true,
controlNav: true,
slideshow: true,
pauseOnHover: true
});
});
</script>
- Nivo Slider: A popular and highly customizable jQuery plugin for creating responsive sliders and carousels.
Example:
<div class="nivo-slider">
<img src="image1.jpg" alt="" />
<img src="image2.jpg" alt="" />
<img src="image3.jpg" alt="" />
</div>
<script>
$(document).ready(function() {
$(".nivo-slider").nivoSlider({
effect: "fold",
slices: 15,
boxCols: 8,
boxRows: 4,
animSpeed: 500,
pauseTime: 3000,
startSlide: 0,
directionNav: true,
controlNav: true,
pauseOnHover: true
});
});
</script>
These are just a few examples of jQuery news sliders. You can customize the appearance and behavior of the slider by modifying the plugin's options and CSS styles.