We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebb02a3 commit 064e26eCopy full SHA for 064e26e
15-slider/final/app.js
@@ -24,9 +24,7 @@ function carousel() {
24
// counter = slides.length - 1;
25
// }
26
// working with buttons
27
- if (counter < 0) {
28
- counter = 0;
29
- }
+
30
if (counter < slides.length - 1) {
31
nextBtn.style.display = "block";
32
} else {
15-slider/setup/styles.css
@@ -264,3 +264,19 @@ Slider
264
height: 65vh;
265
}
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 */
0 commit comments