Skip to content

Commit 01ce959

Browse files
committed
attempt 1 to manual/auto slider
On branch main Changes to be committed: modified: index2.html modified: show2.css
1 parent cd0f604 commit 01ce959

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

‎index2.html‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
<div class="slide">
5959
<img src="res/editions/xfce.png" alt="">
6060
</div>
61+
<div class="slide">
62+
<img src="res/editions/xfce.png" alt="">
63+
</div>
6164
</div>
6265

6366
<div class="navigation">

‎show2.css‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ input[name="r"]
1414
{position: absolute; visibility: hidden;}
1515

1616
.slides
17-
{width: 500%; height: 100%; display: flex;}
17+
{width: 500%; height: 100%; display: flex; animation: n 16s infinite;}
1818

1919
.slide
2020
{width: 20%; transition: 0.6s;}
@@ -34,3 +34,21 @@ input[name="r"]
3434
#r4:checked ~ .s1
3535
{margin-left: -60%;}
3636

37+
@keyframes n {
38+
/*direccion de la animacion izquierda*/
39+
0% {margin-left: 0%;}
40+
15% {margin-left: 0%;}
41+
42+
20% {margin-left: -100%;}
43+
35% {margin-left: -100%;}
44+
45+
40% {margin-left: -200%;}
46+
55% {margin-left: -200%;}
47+
48+
60% {margin-left: -300%;}
49+
75% {margin-left: -300%;}
50+
51+
80% {margin-left: 0%;}
52+
100% {margin-left: 0%;}
53+
/*entre mas imagenes tenga mas hay que aumentarle al margin-left */
54+
}

0 commit comments

Comments
 (0)