@@ -3,30 +3,90 @@ title: Group
3
3
output :
4
4
html_document :
5
5
self_contained : false
6
- quarto :
7
- dependencies :
8
- - name : slick-carousel
9
- version : 1.8.1
10
- source : cdnjs
11
6
---
12
-
13
- # Image Carousel with Slick in Quarto
14
-
15
- <div class =" slick " >
16
- <div ><img src =" images/nipun.jpg " ></div >
17
- <div ><img src =" images/nipun.jpg " ></div >
18
- <div ><img src =" images/nipun.jpg " ></div >
7
+ ### Some group photos and memories (to come soon..)
8
+
9
+ ``` {=html}
10
+ <!-- Image Carousel with CSS in Quarto
11
+ <div class="carousel">
12
+ <input type="radio" id="slide-1" name="carousel-radio" checked>
13
+ <input type="radio" id="slide-2" name="carousel-radio">
14
+ <input type="radio" id="slide-3" name="carousel-radio">
15
+ <div class="slides">
16
+ <div class="slide">
17
+ <img src="images/nipun.jpg">
18
+ </div>
19
+ <div class="slide">
20
+ <img src="image2.jpg">
21
+ </div>
22
+ <div class="slide">
23
+ <img src="image3.jpg">
24
+ </div>
25
+ </div>
26
+ <div class="indicators">
27
+ <label for="slide-1"></label>
28
+ <label for="slide-2"></label>
29
+ <label for="slide-3"></label>
30
+ </div>
19
31
</div>
20
32
21
- <script >
22
- $ (document ).ready (function (){
23
- $ (' .slick' ).slick ();
24
- });
25
- </script >
26
-
27
- ---
28
-
29
- <!-- Add a slider for showing group photos -->
33
+ <style>
34
+ .carousel {
35
+ position: relative;
36
+ }
37
+
38
+ .slides {
39
+ display: flex;
40
+ overflow-x: scroll;
41
+ scroll-snap-type: x mandatory;
42
+ scroll-behavior: smooth;
43
+ }
44
+
45
+ .slide {
46
+ flex: 0 0 100%;
47
+ scroll-snap-align: start;
48
+ }
49
+
50
+ img {
51
+ width: 100%;
52
+ height: auto;
53
+ }
54
+
55
+ .indicators {
56
+ display: flex;
57
+ justify-content: center;
58
+ margin-top: 10px;
59
+ }
60
+
61
+ .indicators label {
62
+ width: 12px;
63
+ height: 12px;
64
+ border-radius: 50%;
65
+ border: 1px solid #000;
66
+ margin: 0 5px;
67
+ cursor: pointer;
68
+ }
69
+
70
+ .indicators label:hover {
71
+ background-color: #000;
72
+ }
73
+
74
+ input[type="radio"] {
75
+ display: none;
76
+ }
77
+
78
+ input[type="radio"]:checked ~ .slides {
79
+ scroll-snap-type: none;
80
+ scroll-behavior: auto;
81
+ overflow-x: visible;
82
+ }
83
+
84
+ input[type="radio"]:checked ~ .slides .slide {
85
+ scroll-snap-align: none;
86
+ }
87
+ </style>
88
+ -->
89
+ ```
30
90
31
91
32
92
### Current
0 commit comments