| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ebb02a3 commit 064e26e
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,9 +24,7 @@ function carousel() { | |||
| 24 | 24 | // counter = slides.length - 1; | |
| 25 | 25 | // } | |
| 26 | 26 | // working with buttons | |
| 27 | - if (counter < 0) { | ||
| 28 | - counter = 0; | ||
| 29 | - } | ||
| 27 | + | ||
| 30 | 28 | if (counter < slides.length - 1) { | |
| 31 | 29 | nextBtn.style.display = "block"; | |
| 32 | 30 | } else { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -264,3 +264,19 @@ Slider | |||
| 264 | 264 | height: 65vh; | |
| 265 | 265 | } | |
| 266 | 266 | } | |
| 267 | + /* .slide:nth-child(1){ | ||
| 268 | + left: 0; | ||
| 269 | + } | ||
| 270 | + .slide:nth-child(2){ | ||
| 271 | + left: 100%; | ||
| 272 | + } | ||
| 273 | + .slide:nth-child(3){ | ||
| 274 | + left: 200%; | ||
| 275 | + } | ||
| 276 | + .slide:nth-child(4){ | ||
| 277 | + left: 300%; | ||
| 278 | + } | ||
| 279 | + .slide{ | ||
| 280 | + transform: translateX(-100%); | ||
| 281 | + } */ | ||
| 282 | + /* negative value moves to left */ | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments