You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*Time for the CSS*/* {margin: 0; padding: 0;}.slider{ width: 1150px; /*Same as width of the large image*/ position: relative; /*Instead of height we will use padding*/ padding-top: 320px; /*padding-left:680px;*/ margin: 100px auto; /*Lets add a shadow*/ /*box-shadow: 0px 10px 20px -5px rgba(0, 0, 0, 0.75);*/}/*Last thing remaining is to add transitions*/.slider>img{ position: absolute; left: 250px; top:0px; transition:all 0.5s;}.slider input[name='slide_switch'] { display: none;}.slider label { /*Lets add some spacing for the thumbnails*/ margin: 5px 0 0 5px; border: 3px solid #999; cursor: pointer; transition: all 0.5s; /*Default style = low opacity*/ opacity: 0.6;}.slider label img{ display: inline;}/*Time to add the click effects*/.slider input[name='slide_switch']:checked+label { border-color: #666; opacity: 1;}/*Clicking any thumbnail now should change its opacity(style)*//*Time to work on the main images*/.slider input[name='slide_switch'] ~ img { opacity: 0; transform: scale(1.1);}/*That hides all main images at a 110% sizeOn click the images will be displayed at normal size to complete the effect*/.slider input[name='slide_switch']:checked+label+img { opacity: 1; transform: scale(1);}/*Clicking on any thumbnail now should activate the image related to it*//*We are done :)*/