Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur eleifend a massa rhoncus gravida. Nullam in viverra sapien. Nunc bibendum nec lectus et vulputate. Nam.
read moreLorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur eleifend a massa rhoncus gravida. Nullam in viverra sapien. Nunc bibendum nec lectus et vulputate. Nam.
read moreLorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur eleifend a massa rhoncus gravida. Nullam in viverra sapien. Nunc bibendum nec lectus et vulputate. Nam.
read more1 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 | < 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" > < img src = "images/img-1.jpg" alt = "" > < div class = "over-layer" > < ul class = "post-link" > < li >< a href = "#" class = "fa fa-search" ></ a ></ li > < li >< a href = "#" class = "fa fa-link" ></ a ></ li > </ ul > </ div > </ div > < div class = "post-review" > < h3 class = "post-title" >< a href = "#" >Latest News Post</ a ></ h3 > < ul class = "post-info" > < li >Comment: 2</ li > < li >Date: Feb 21, 2016</ li > < li >Author:Williamson</ li > </ ul > < ul class = "tag-info" > < li >Tags:</ li > < li >< a href = "" >Mockups,</ a ></ li > < li >< a href = "" >Graphics,</ a ></ li > < li >< a href = "" >Web Projects</ a ></ li > </ ul > < p class = "post-description" > Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur eleifend a massa rhoncus gravida. Nullam in viverra sapien. Nunc bibendum nec lectus et vulputate. Nam. </ p > < a href = "#" class = "read-more" >read more</ a > </ div > </ div > < div class = "post-slide" > < div class = "post-img" > < img src = "images/img-2.jpg" alt = "" > < div class = "over-layer" > < ul class = "post-link" > < li >< a href = "#" class = "fa fa-search" ></ a ></ li > < li >< a href = "#" class = "fa fa-link" ></ a ></ li > </ ul > </ div > </ div > < div class = "post-review" > < h3 class = "post-title" >< a href = "#" >Latest News Post</ a ></ h3 > < ul class = "post-info" > < li >Comment: 4</ li > < li >Date: Feb 25, 2016</ li > < li >Author:Kristiana</ li > </ ul > < ul class = "tag-info" > < li >Tags:</ li > < li >< a href = "" >Mockups,</ a ></ li > < li >< a href = "" >Graphics,</ a ></ li > < li >< a href = "" >Web Projects</ a ></ li > </ ul > < p class = "post-description" > Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur eleifend a massa rhoncus gravida. Nullam in viverra sapien. Nunc bibendum nec lectus et vulputate. Nam. </ p > < a href = "#" class = "read-more" >read more</ a > </ 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 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | <link rel= "stylesheet" href= "https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.min.css" > .post-slide{ margin : 0 10px ; background : #fff ; } .post-slide .post-img{ overflow : hidden ; position : relative ; } .post-slide .post-img img{ width : 100% ; height : auto ; transform: scale( 1 , 1 ); transition: all 0.30 s ease 0 s; } .post-slide:hover .post-img img{ transform: scale( 1.2 , 1.2 ); } .post-slide .over-layer{ position : absolute ; top : 0 ; left : 0 ; width : 100% ; height : 100% ; opacity: 0 ; text-align : center ; background :rgba( 68 , 67 , 64 , 0.9 ); transition: all 0.50 s linear; } .post-slide:hover .over-layer{ opacity: 1 ; } .post-slide .post-link{ padding : 0 ; margin : 0 ; list-style : none ; position : relative ; top : 45% ; } .post-slide .post-link li{ display : inline- block ; margin-right : 10px ; } .post-slide .post-link li a{ width : 60px ; height : 60px ; line-height : 59px ; border-radius: 50% ; color : #fff ; background : #333 ; font-size : 20px ; transform: scale( 1 , 1 ); transition: all 0.20 s linear; } .post-slide .post-link li a:hover{ text-decoration : none ; transform: scale( 1.1 , 1.1 ); } .post-slide .post-review{ padding : 15px 0 ; overflow : hidden ; } .post-slide .post-title{ margin-top : 0 ; } .post-slide .post-title a{ display : block ; color : #333 ; font-size : 18px ; text-align : center ; font-weight : bold ; text-transform : uppercase ; transition: all 0.50 s ease 0 s; } .post-slide .post-title a:hover{ text-decoration : none ; color : #1f80bb ; } .post-slide .post-info{ list-style : none ; padding : 10px 0 0 0 ; margin : 0 0 7px 0 ; text-align : center ; border-top : 1px solid #d3d3d3 ; } .post-slide .post-info li{ display : inline- block ; margin-right : 13px ; } .post-slide .tag-info{ margin : 0 ; padding : 0 0 10px 0 ; text-align : center ; border-bottom : 1px solid #d3d3d3 ; } .post-slide .tag-info li{ list-style : none ; display : inline- block ; } .post-slide .tag-info li a{ color : #808080 ; text-transform : capitalize ; } .post-slide .tag-info li a:hover{ color : #1f80bb ; text-decoration : none ; } .post-slide .post-description{ color : #828282 ; font-size : 14px ; padding : 5px 25px ; line-height : 25px ; } .post-slide .read-more{ color : #333 ; float : right ; font-weight : bold ; margin-right : 25px ; text-transform : capitalize ; } .post-slide .read-more:hover{ color : #1f80bb ; text-decoration : none ; } .owl-theme .owl-buttons div{ position : relative ; border-radius: 0 ; background : #807b87 ; padding : 7px 15px ; transition: all 0.5 s ease 0 s; } .owl-theme .owl-buttons .owl-prev{ position : absolute ; left : 0 ; top : 50% ; opacity: 0 ; transition: all 0.50 s linear; } .owl-carousel:hover .owl-buttons .owl-prev{ opacity: 1 ; left : -30px ; } .owl-theme .owl-buttons .owl-next{ position : absolute ; right : 0 ; top : 50% ; opacity: 0 ; transition: all 0.50 s linear; } .owl-carousel:hover .owl-buttons .owl-next{ opacity: 1 ; right : -30px ; } .owl-prev:before, .owl-next:before{ content : "\f053" ; font-family : "Font Awesome 5 Free" ; font-weight : 900 ; color : #fff ; } .owl-next:before{ content : "\f054" ; } @media only screen and ( max-width : 990px ) { .post-slide .post-info li { margin-right : 5px ; } .owl-theme .owl-buttons div{ display : none ; } } @media only screen and ( max-width : 767px ) { .post-slide .post-link li a{ width : 40px ; height : 40px ; line-height : 39px ; font-size : 13px ; } .post-slide .post-title a{ font-size : 14px ; } } |
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,2], itemsTablet:[650,1], pagination: false , navigation: true , navigationText:[ "" , "" ] }); }); |