farfnd

slider.css

Sep 18th, 2021 (edited)
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.71 KB | None | 0 0
  1. * {box-sizing:border-box}
  2.  
  3. /* Slideshow container */
  4. .slideshow-container {
  5.   max-width: 80%;
  6.   position: relative;
  7.   margin: auto;
  8.   height: 400px;
  9. }
  10.  
  11. .slideshow-container img{
  12.   max-height: 400px;
  13. }
  14.  
  15. /* Hide the images by default */
  16. .mySlides {
  17.   display: none;
  18. }
  19.  
  20. /* Next & previous buttons */
  21. .prev, .next {
  22.   cursor: pointer;
  23.   position: absolute;
  24.   top: 50%;
  25.   width: auto;
  26.   margin-top: -22px;
  27.   padding: 16px;
  28.   color: white;
  29.   font-weight: bold;
  30.   font-size: 18px;
  31.   transition: 0.6s ease;
  32.   border-radius: 0 3px 3px 0;
  33.   user-select: none;
  34. }
  35.  
  36. /* Position the "next button" to the right */
  37. .next {
  38.   right: 0;
  39.   border-radius: 3px 0 0 3px;
  40. }
  41.  
  42. /* On hover, add a black background color with a little bit see-through */
  43. .prev:hover, .next:hover {
  44.   background-color: rgba(0,0,0,0.8);
  45. }
  46.  
  47. /* Caption text */
  48. .text {
  49.   color: #f2f2f2;
  50.   font-size: 15px;
  51.   padding: 8px 12px;
  52.   position: absolute;
  53.   bottom: 8px;
  54.   width: 100%;
  55.   text-align: center;
  56. }
  57.  
  58. /* Number text (1/3 etc) */
  59. .numbertext {
  60.   color: #f2f2f2;
  61.   font-size: 12px;
  62.   padding: 8px 12px;
  63.   position: absolute;
  64.   top: 0;
  65. }
  66.  
  67. /* The dots/bullets/indicators */
  68. .dot {
  69.   cursor: pointer;
  70.   height: 15px;
  71.   width: 15px;
  72.   margin: 0 2px;
  73.   background-color: #bbb;
  74.   border-radius: 50%;
  75.   display: inline-block;
  76.   transition: background-color 0.6s ease;
  77. }
  78.  
  79. .active, .dot:hover {
  80.   background-color: #717171;
  81. }
  82.  
  83. /* Fading animation */
  84. .fade {
  85.   -webkit-animation-name: fade;
  86.   -webkit-animation-duration: 1.5s;
  87.   animation-name: fade;
  88.   animation-duration: 1.5s;
  89. }
  90.  
  91. @-webkit-keyframes fade {
  92.   from {opacity: .4}
  93.   to {opacity: 1}
  94. }
  95.  
  96. @keyframes fade {
  97.   from {opacity: .4}
  98.   to {opacity: 1}
  99. }
Add Comment
Please, Sign In to add comment