Added new Logic to position image which fixes the z-index problem.
Added Start/Stop Buttons Added css reset for resizing the window Added transition reset for resizing and page loading TODO Selector configuration for easier implementation
This commit is contained in:
+202
-142
@@ -7,13 +7,13 @@
|
||||
$base-size: 14px;
|
||||
$smaller-size: $base-size*0.66;
|
||||
|
||||
$slider_width:100%;
|
||||
$slider_item_width:20%;
|
||||
$slider_width: 100%;
|
||||
$slider_item_width: 61.8%;
|
||||
|
||||
$font__main: Calibri, sans-serif;
|
||||
|
||||
$highlight-color-1: #3a9985;
|
||||
$highlight-color-2: #d38b71;
|
||||
$highlight-color-1: #333333;
|
||||
$highlight-color-2: #eeeeee;
|
||||
|
||||
$text-color: #ffffff;
|
||||
$base-color: #ffffff;
|
||||
@@ -35,7 +35,7 @@ header {
|
||||
display: block;
|
||||
font-size: 100px;
|
||||
font-weight: 700;
|
||||
padding:25px 50px!important;
|
||||
padding: 25px 50px !important;
|
||||
color: $base-color;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
@@ -74,6 +74,8 @@ footer {
|
||||
}
|
||||
}
|
||||
|
||||
// SLIDER CSS
|
||||
|
||||
div.bannergroup {
|
||||
width: $slider_width;
|
||||
position: relative;
|
||||
@@ -83,16 +85,203 @@ div.bannergroup {
|
||||
overflow: hidden;
|
||||
background-color: $base-color;
|
||||
|
||||
&:after {
|
||||
content: ' ';
|
||||
//background-image: url($img-dir + "/wave.png");
|
||||
// Bottom Background Image
|
||||
//&:after {
|
||||
// content: ' ';
|
||||
// //background-image: url($img-dir + "/wave.png");
|
||||
// position: absolute;
|
||||
// height: 100px;
|
||||
// width: 100%;
|
||||
// bottom: 0;
|
||||
// background-position: bottom;
|
||||
// background-size: 100%;
|
||||
// background-repeat: no-repeat;
|
||||
//}
|
||||
|
||||
.banneritem {
|
||||
position: absolute;
|
||||
height: 100px;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
width: $slider_item_width;
|
||||
|
||||
padding: 0 !important;
|
||||
transition: all 2s ease 0s;
|
||||
|
||||
&.active {
|
||||
z-index: 100;
|
||||
opacity: 1;
|
||||
|
||||
img {
|
||||
-ms-filter: none;
|
||||
filter: none;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
&.inactive {
|
||||
z-index: 90;
|
||||
opacity: 1;
|
||||
|
||||
&.visible {
|
||||
z-index: 95;
|
||||
}
|
||||
|
||||
img {
|
||||
-webkit-filter: blur(1px);
|
||||
-ms-filter: blur(1px);
|
||||
filter: blur(1px) !important;
|
||||
|
||||
-webkit-transform: scale(1.1);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
vertical-align: middle !important;
|
||||
width: 100%;
|
||||
transition: all 0.2s ease 0s;
|
||||
|
||||
&.portrait {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
&:before {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-top: 42.5532%; /* initial ratio of 47:20*/
|
||||
}
|
||||
}
|
||||
a {
|
||||
position: absolute;
|
||||
display: table !important;
|
||||
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
||||
margin: 0 !important;
|
||||
text-decoration: none;
|
||||
|
||||
.bannertext {
|
||||
//position: absolute;
|
||||
display: table-cell;
|
||||
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
|
||||
line-height: 4*$base-size;
|
||||
font-family: $font__main;
|
||||
font-size: $base-size*3;
|
||||
color: $text-color;
|
||||
|
||||
text-shadow: 0px 0px 0.33*$base-size #000;
|
||||
|
||||
background: transparent !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.banneritem
|
||||
.banneritem img, .banneritem iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0 !important;
|
||||
bottom: 0;
|
||||
background-position: bottom;
|
||||
background-size: 100%;
|
||||
background-repeat: no-repeat;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.bannerautoplay {
|
||||
position: absolute;
|
||||
bottom: 0 !important;
|
||||
left: 0;
|
||||
|
||||
margin: 0;
|
||||
padding: $base-size;
|
||||
|
||||
z-index: 200000;
|
||||
width: auto;
|
||||
|
||||
.play {
|
||||
display: inline-block;
|
||||
|
||||
width: $base-size/1.8 !important;
|
||||
height: $base-size/1.8;
|
||||
margin: 0 $smaller-size -2px 0;
|
||||
|
||||
border-top: solid 0.33*$base-size $highlight-color-2;
|
||||
border-right: solid 0.33*$base-size $highlight-color-2;
|
||||
border-bottom-left-radius: $base-size/1.8;
|
||||
background: $highlight-color-1;
|
||||
|
||||
transform: rotate(45deg);
|
||||
box-shadow: 0 0 0.33*$base-size $highlight-color-1;
|
||||
|
||||
&:first-of-type {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
&:last-of-type {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
.pause {
|
||||
display: inline-block;
|
||||
|
||||
height: $base-size;
|
||||
width: 0.33*$base-size !important;
|
||||
margin: 0 $smaller-size -4px 0;
|
||||
|
||||
border-left: solid 0.33*$base-size $highlight-color-2;
|
||||
border-right: solid 0.33*$base-size $highlight-color-2;
|
||||
background: $highlight-color-1;
|
||||
|
||||
box-shadow: 0 0 0.33*$base-size $highlight-color-1;
|
||||
|
||||
&:first-of-type {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
&:last-of-type {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bannerjump-wrapper {
|
||||
position: absolute;
|
||||
bottom: 0 !important;
|
||||
right: 0;
|
||||
|
||||
margin: 0;
|
||||
padding: $base-size;
|
||||
|
||||
z-index: 200000;
|
||||
width: auto;
|
||||
|
||||
.bannerjump {
|
||||
display: inline-block;
|
||||
|
||||
width: 0.33*$base-size !important;
|
||||
height: 0.33*$base-size;
|
||||
margin: 0 $smaller-size -4px 0;
|
||||
|
||||
border-radius: $smaller-size;
|
||||
border: solid 0.33*$base-size $highlight-color-1;
|
||||
background: $highlight-color-2;
|
||||
|
||||
&.active {
|
||||
background: $highlight-color-1;
|
||||
border-color: $highlight-color-2;
|
||||
}
|
||||
|
||||
&:first-of-type {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
&:last-of-type {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bannercontrols {
|
||||
@@ -174,134 +363,5 @@ div.bannergroup {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bannerjump-wrapper {
|
||||
position: absolute;
|
||||
bottom: 0 !important;
|
||||
right: 0;
|
||||
|
||||
margin: 0;
|
||||
padding: $base-size;
|
||||
|
||||
z-index: 20000;
|
||||
width: auto;
|
||||
|
||||
.bannerjump {
|
||||
display: inline-block;
|
||||
|
||||
width: 0.33*$base-size !important;
|
||||
height: 0.33*$base-size;
|
||||
margin: 0 $smaller-size -4px 0;
|
||||
|
||||
border-radius: $smaller-size;
|
||||
border: solid 0.33*$base-size $highlight-color-1;
|
||||
background: $highlight-color-2;
|
||||
|
||||
&.active {
|
||||
background: $highlight-color-1;
|
||||
border-color: $highlight-color-2;
|
||||
}
|
||||
|
||||
&:first-of-type {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
&:last-of-type {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.banneritem {
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
width: $slider_item_width;
|
||||
|
||||
padding: 0 !important;
|
||||
transition: all 2s ease 0s;
|
||||
|
||||
&.active {
|
||||
z-index: 100;
|
||||
opacity: 1;
|
||||
|
||||
img {
|
||||
-ms-filter: none;
|
||||
filter: none;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
&.inactive {
|
||||
z-index: 90;
|
||||
opacity: 1;
|
||||
|
||||
&.visible {
|
||||
z-index: 95;
|
||||
}
|
||||
|
||||
img {
|
||||
//-webkit-filter: blur(10px);
|
||||
//-ms-filter: blur(5px);
|
||||
//filter: blur(5px) !important;
|
||||
|
||||
-webkit-transform: scale(1.1);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
vertical-align: middle !important;
|
||||
width: 100%;
|
||||
transition: all 0.2s ease 0s;
|
||||
|
||||
&.portrait {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
&:before {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-top: 42.5532%; /* initial ratio of 47:20*/
|
||||
}
|
||||
}
|
||||
a {
|
||||
position: absolute;
|
||||
display: table !important;
|
||||
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
||||
margin: 0 !important;
|
||||
text-decoration: none;
|
||||
|
||||
.bannertext {
|
||||
//position: absolute;
|
||||
display: table-cell;
|
||||
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
|
||||
line-height: 4*$base-size;
|
||||
font-family: $font__main;
|
||||
font-size: $base-size*3;
|
||||
color: $text-color;
|
||||
|
||||
text-shadow: 0px 0px 0.33*$base-size #000;
|
||||
|
||||
background: transparent !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.banneritem
|
||||
.banneritem img, .banneritem iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0 !important;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user