(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
/*https://www.sitepoint.com/make-a-simple-javascript-slideshow-without-jquery*/ | /*https://www.sitepoint.com/make-a-simple-javascript-slideshow-without-jquery*/ | ||
#slides{ | #slides{ | ||
− | + | position: relative; | |
− | + | padding: 0px; | |
− | + | margin: 0px !important; | |
− | + | list-style-type: none; | |
− | + | height: 100%; | |
+ | width: 100%; | ||
} | } | ||
Line 11: | Line 12: | ||
position: absolute; | position: absolute; | ||
left: 0px; | left: 0px; | ||
+ | margin:0px!important; | ||
top: 0px; | top: 0px; | ||
width: 100%; | width: 100%; | ||
− | height: | + | padding:0px!important; |
+ | height: auto!important; | ||
opacity: 0; | opacity: 0; | ||
z-index: 1; | z-index: 1; | ||
− | |||
-webkit-transition: opacity 1s; | -webkit-transition: opacity 1s; | ||
-moz-transition: opacity 1s; | -moz-transition: opacity 1s; | ||
Line 26: | Line 28: | ||
opacity: 1; | opacity: 1; | ||
z-index: 2; | z-index: 2; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } |
Latest revision as of 18:21, 1 November 2017
/*https://www.sitepoint.com/make-a-simple-javascript-slideshow-without-jquery*/
- slides{
position: relative; padding: 0px; margin: 0px !important; list-style-type: none; height: 100%; width: 100%; }
.slide{
position: absolute; left: 0px;
margin:0px!important;
top: 0px; width: 100%;
padding:0px!important;
height: auto!important; opacity: 0; z-index: 1; -webkit-transition: opacity 1s; -moz-transition: opacity 1s; -o-transition: opacity 1s; transition: opacity 1s;
}
.showing{
opacity: 1; z-index: 2;
}