Skip to content

DHEEREX/SLIDESHOW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

<title>Image Slider</title> <style> @keyframes fade { 0% { opacity: 0; }

100% { opacity: 1; } }

  • { padding: 0; border: 0; box-sizing: border-box; }

body { height: 100%; }

body h1 { text-align: center; }

.slide-container { display: flex; justify-content: center; align-items: center; max-width: 1000px; margin: auto; position: relative; }

.slide-container .slide { display: none; width: 100%; }

.slide-container .slide.fade { animation: fade 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) both; }

.slide-container .slide img { width: 100%; }

  .slide-container .prev,

.slide-container .next { cursor: pointer; position: absolute; top: 50%; width: auto; margin-top: -22px; padding: 16px; color: white; font-weight: bold; font-size: 20px; transition: all 0.6s ease; border-radius: 0 3px 3px 0; user-select: none; }

.slide-container .prev:hover, .slide-container .next:hover { background-color: rgba(0, 0, 0, 0.8); color: white; }

.slide-container .prev { left: 2px; }

.slide-container .next { right: 2px; }

.dots-container { display: flex; justify-content: center; align-items: center; padding: 10px; }

.dots-container .dot { cursor: pointer; margin: 5px; width: 20px; height: 20px; color: #333; border-radius: 50%; background-color: #dfd6ce; }

.dots-container .dot.active { border: 2px solid green; } </style>

Image Slider

  <a href="#" class="prev" title="Previous">&#10094</a>
  <a href="#" class="next" title="Next">&#10095</a>
</div>
<div class="dots-container">
  <span class="dot"></span>
  <span class="dot"></span>
  <span class="dot"></span>
  <span class="dot"></span>
</div>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published