In this example:

Easy Query and Owl Carousel work together to display featured posts in a beautiful slider format.

Owl Carousel is a popular touch-enabled jQuery plugin that lets you easily create a responsive carousel slider.

Javascript
The following code should be placed inside your website javascript file.

$(function() {
  if($('.owl-carousel').length){
    $(".wp-easy-query-posts .owl-carousel").owlCarousel({
      navigation : true, // Show next and prev buttons
      slideSpeed : 300,
      paginationSpeed : 400,
      singleItem:true,
    });
  }
});
JavaScript

The following shortcode was used to create the Owl Carousel example.

[easy_query container="div" classes="owl-carousel" post_type="post" post__in="8, 12, 15, 16, 21" posts_per_page="6" paging="false"]