Skip to content

Commit

Permalink
Added the loop of the items and also added data-speed to control the …
Browse files Browse the repository at this point in the history
…speed of the moving item. also made some changes to the scroll method(from transform to scrollLeft to take the advantage of the scroll on mobiles and even more coming soon
  • Loading branch information
codeveins committed Jun 9, 2017
1 parent b4c87cf commit e85b5ae
Show file tree
Hide file tree
Showing 4 changed files with 355 additions and 365 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ ResCarousel Means "Responsive Carousel"
...
...
</div>
<button class='btn btn-default leftLst'><i class="fa fa-fw fa-angle-left"></i></button>
<button class='btn btn-default rightLst'><i class="fa fa-fw fa-angle-right"></i></button>
<button class='btn btn-default leftRs'><i class="fa fa-fw fa-angle-left"></i></button>
<button class='btn btn-default rightRs'><i class="fa fa-fw fa-angle-right"></i></button>
</div>

# About data-items="xs,sm,md,lg"
Expand Down
136 changes: 27 additions & 109 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,137 +1,55 @@
@import url('https://fonts.googleapis.com/css?family=Trirong:300,400,400i,500,600,700');
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css');

/*resCarousel Css*/

.outt {
display: none;
}

.leftLs, .leftLst {
.leftRs {
position: absolute;
margin: auto;
top: 0;
bottom: 0;
z-index:100;
z-index: 100;
left: 0;
width: 40px;
height: 100px;
box-shadow: 1px 2px 10px -1px rgba(0,0,0,.3);
width: 50px;
height: 50px;
box-shadow: 1px 2px 10px -1px rgba(0, 0, 0, .3);
border-radius: 999px;
}
.rightLs, .rightLst {

.rightRs {
position: absolute;
margin: auto;
top: 0;
right: 0;
bottom: 0;
z-index:100;
width: 40px;
height: 100px;
box-shadow: 1px 2px 10px -1px rgba(0,0,0,.3);
z-index: 100;
width: 50px;
height: 50px;
box-shadow: 1px 2px 10px -1px rgba(0, 0, 0, .3);
border-radius: 999px;
}

.resCarousel {
float: left;
overflow: hidden;
padding: 0 15px;
/*padding: 0 15px;*/
width: 100%;
position: relative;
}
.resCarousel-inner {
transition: 1s ease all;
float: left;
}
.resCarousel-inner .item {
float: left;
}

/*resCarousel Css End*/




body {
background: #FCEFEA;
font-family: 'Trirong', serif;
padding-bottom: 50px;
}
.p0 {
padding: 0;
}
.p8 {
padding: 8px;
}
.shad a {
color: black;
text-decoration: none;
}
.itm {
display: none;
}
.act, .nxt {
display: block;
}
.sliderMain {
height: 280px;
overflow: hidden;
.resCarousel-inner {
/*transition: 1s ease all;*/
overflow-x: hidden;
white-space: nowrap;
font-size: 0;
}

/*products*/
.shad {
background: white;
box-sizing: border-box;
/*border: 8px solid white;*/
/*box-shadow: 0 2px 4px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);*/
box-shadow: 0 1px 3px 0 rgba(0,0,0,.12),1px 4px 7px 0 rgba(0,0,0,.1);
padding-bottom: 15px;
}
.EiProducts .shad a {
color: black;
}
.item, .EiProd {
padding: 10px;
border-right: 1px solid rgb(242, 242, 242);
border-bottom: 1px solid rgb(242, 242, 242);
}
.EiProdH {
padding: 5px 15px;
font-weight: bold;
margin-bottom: 11px;
border-bottom: 1px solid rgba(0,0,0,.1);
.resCarousel-inner .item {
display: inline-block;
font-size: 14px;
white-space: initial;
}




.item:hover .EiProdImg img {
transform: scale(1.05);
transition: 0.3s ease all;
position: relative;
}
.EiProdImg img {
max-height: 190px;
max-width: 100%;
transition: 0.3s ease all;
margin: 0 auto;
display: block;
}
.EiPName {
width: 100%;
}
.EiProdName {
padding: 0;
}
.EiProdName div {
float: left;
padding: 4px;
}
.EiProdName .EiPrice {
font-weight: bold;
font-size: 16px;
}
.EiProdName .EiPriceT {
color: grey;
text-decoration: line-through;
font-size: 16px;
}
.EiProdName .EiDisc {
color: green;
font-size: 16px;
}
/*resCarousel Css End*/
Loading

0 comments on commit e85b5ae

Please sign in to comment.