Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent at erat, non placerat urna. Pellentesque in convallis risus. Ut dapibus elementum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent at erat, non placerat urna. Pellentesque in convallis risus. Ut dapibus elementum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent at erat, non placerat urna. Pellentesque in convallis risus. Ut dapibus elementum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent at erat, non placerat urna. Pellentesque in convallis risus. Ut dapibus elementum.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | < div class = "container" > < div class = "row" > < div class = "col-md-12" > < div id = "news-slider" class = "owl-carousel" > < div class = "post-slide" > < div class = "post-img" > < span class = "over-layer" ></ span > < img src = "images/img-1.jpg" alt = "" > </ div > < div class = "post-review" > < h3 class = "post-title" >< a href = "#" >Latest News Post</ a ></ h3 > < span class = "post-date" >Nov 10,2015</ span > < p class = "post-description" > Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent at erat, non placerat urna. Pellentesque in convallis risus. Ut dapibus elementum. </ p > </ div > </ div > < div class = "post-slide" > < div class = "post-img" > < span class = "over-layer" ></ span > < img src = "images/img-2.jpg" alt = "" > </ div > < div class = "post-review" > < h3 class = "post-title" >< a href = "#" >Latest News Post</ a ></ h3 > < span class = "post-date" >Nov 12,2015</ span > < p class = "post-description" > Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent at erat, non placerat urna. Pellentesque in convallis risus. Ut dapibus elementum. </ p > </ div > </ div > < div class = "post-slide" > < div class = "post-img" > < span class = "over-layer" ></ span > < img src = "images/img-3.jpg" alt = "" > </ div > < div class = "post-review" > < h3 class = "post-title" >< a href = "#" >Latest News Post</ a ></ h3 > < span class = "post-date" >Nov 14,2015</ span > < p class = "post-description" > Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent at erat, non placerat urna. Pellentesque in convallis risus. Ut dapibus elementum. </ p > </ div > </ div > </ div > </ div > </ div > </ div > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | <link rel= "stylesheet" href= "https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.min.css" > <link rel= "stylesheet" href= "https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.theme.min.css" > .post-slide{ background : #fff ; margin : 0 15px ; } .post-slide .post-img{ position : relative ; float : left ; width : 50% ; height : auto ; } .post-slide .over-layer{ background : rgba( 0 , 0 , 0 , 0.6 ); width : 100% ; height : 100% ; position : absolute ; opacity: 0 ; cursor : pointer ; transition: opacity 0.30 s ease 0 s; } .post-slide .over-layer:after{ color : #fff ; content : "+" ; font-size : 52px ; position : absolute ; top : 31% ; left : 42% ; } .post-slide .post-img:hover .over-layer{ opacity: 1 ; } .post-slide .post-img img{ width : 100% ; height : auto ; } .post-slide .post-review{ float : left ; padding : 1px 20px ; width : 50% ; } .post-slide .post-title{ margin : 0 0 5px 0 ; } .post-slide .post-title a{ color : #3498db ; font-size : 20px ; font-weight : 700 ; display : block ; text-transform : capitalize ; transition:color 0.30 s ease; } .post-title > a:hover{ text-decoration : none ; color : #333 ; } .post-slide .post-date{ display : block ; font-size : 15px ; font-weight : 700 ; margin-bottom : 17px ; } .post-description{ color : #333 ; font-size : 15px ; font-weight : 400 ; text-align : left ; } .owl-pagination{ margin-top : 40px ; } .owl-theme .owl-controls .owl-page.active span, .owl-theme .owl-controls.clickable .owl- page :hover span{ background : #3498db ; } @media only screen and ( max-width : 990px ){ .post-slide .over-layer:after{ top : 39% ; left : 45% ; } } @media only screen and ( max-width : 640px ){ .post-slide .post-img{ width : 100% ; } .post-slide .post-review{ width : 100% ; padding : 10px ; } } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <script type= "text/javascript" src= "https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.min.js" ></script> $(document).ready( function () { $( "#news-slider" ).owlCarousel({ items : 2, itemsDesktop:[1199,2], itemsDesktopSmall:[980,1], itemsTablet: [600,1], itemsMobile : [550,1], pagination: true , autoPlay: true }); }); |