@aurodesignsystem-dev/auro-slideshow 0.0.0-pr80.0 → 0.0.0-pr80.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -35
- package/custom-elements.json +67 -50
- package/demo/api.md +104 -91
- package/demo/api.min.js +117 -67
- package/demo/index.md +15 -15
- package/demo/index.min.js +117 -67
- package/demo/readme.md +22 -22
- package/dist/auro-slideshow-CtRX3auP.js +156 -0
- package/dist/index.d.ts +128 -94
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +11 -11
- package/dist/auro-slideshow-Di9AtYIy.js +0 -133
package/demo/api.md
CHANGED
|
@@ -3,53 +3,66 @@
|
|
|
3
3
|
|
|
4
4
|
# auro-slideshow
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
A slideshow for presenting a series of images or other content in a space-saving way, with manual controls or automatic advancing.
|
|
7
|
+
|
|
8
|
+
**Key capabilities**
|
|
9
|
+
- **Autoplay**: Set `autoplay` to move to the next slide after each `delay`.
|
|
10
|
+
- **Continuous scroll**: Set `autoScroll` to scroll the slides at a steady pace.
|
|
11
|
+
- **Navigation arrows**: Set `navigation` to show previous and next arrows when the slides are hovered.
|
|
12
|
+
- **Pagination dots**: Set `pagination` to show a dot for each slide.
|
|
13
|
+
- **Looping**: Set `loop` to return to the first slide after the last.
|
|
14
|
+
- **Full-bleed preview**: Set `fullBleed` to show parts of the previous and next slides.
|
|
15
|
+
|
|
16
|
+
**Example**
|
|
17
|
+
<pre class="language-html"><code class="language-html"><auro-slideshow navigation pagination>
|
|
18
|
+
<div style="height: 480px">Slide 1</div>
|
|
19
|
+
<div style="height: 480px">Slide 2</div>
|
|
20
|
+
</auro-slideshow></code></pre>
|
|
8
21
|
|
|
9
|
-
### Properties
|
|
10
|
-
|
|
11
|
-
| Properties | Attributes | Modifiers | Type | Default | Description
|
|
12
|
-
| ----------- | ----------- | --------- | ------- |
|
|
13
|
-
| autoplay | autoplay | | boolean |
|
|
14
|
-
| autoScroll | autoscroll | | boolean |
|
|
15
|
-
| delay | delay | | number | `7000`
|
|
16
|
-
| fullBleed | fullbleed | | boolean |
|
|
17
|
-
| loop | loop | | boolean |
|
|
18
|
-
| navigation | navigation | | boolean |
|
|
19
|
-
| pagination | pagination | | boolean |
|
|
20
|
-
| playOnInit | playoninit | | boolean |
|
|
21
|
-
| scrollSpeed | scrollspeed | | number | `0.75` |
|
|
22
|
-
| startDelay | startdelay | | number | `1000` |
|
|
23
|
-
| pauseLabel | pauselabel | | string |
|
|
24
|
-
| playLabel | playlabel | | string |
|
|
22
|
+
### Properties and attributes
|
|
23
|
+
|
|
24
|
+
| Properties | Attributes | Modifiers | Type | Default | Relevant when | Description |
|
|
25
|
+
| ----------- | ----------- | --------- | ------- | ----------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
26
|
+
| autoplay | autoplay | | boolean | | | Adds a play and pause button and moves to the next slide after each `delay`. The slideshow starts playing on page load only when `playOnInit` is also set. |
|
|
27
|
+
| autoScroll | autoscroll | | boolean | | | Scrolls the slides at a steady pace instead of stopping on each slide, and adds a play and pause button. The slideshow starts scrolling on page load only when `playOnInit` is also set. Doesn't apply on touch devices (those with a coarse primary pointer), and `autoplay` takes priority when both are set. |
|
|
28
|
+
| delay | delay | | number | `7000` | `autoplay` | Sets how long each slide shows before the slideshow moves to the next one, in milliseconds. Applies only when `autoplay` is set. |
|
|
29
|
+
| fullBleed | fullbleed | | boolean | | | Stretches the slideshow to the full width of the browser window, so parts of the previous and next slides show beside the current slide. Each slide stays as wide as the slideshow's container. To prevent horizontal scrolling, set `overflow-x: hidden` on a parent container. |
|
|
30
|
+
| loop | loop | | boolean | | | Goes back to the first slide after the last slide instead of stopping at the end. When `loop` isn't set, `autoplay` and `autoScroll` stop on the last slide. |
|
|
31
|
+
| navigation | navigation | | boolean | | | Shows previous and next arrow buttons when the slides are hovered. When `loop` isn't set, the arrow for a direction is hidden at the first or last slide. The arrows don't appear on touch devices, where the primary pointer is coarse. |
|
|
32
|
+
| pagination | pagination | | boolean | | | Shows a dot for each slide, with a wider dot for the current slide. When `autoplay` is set, the current dot also shows a progress bar. |
|
|
33
|
+
| playOnInit | playoninit | | boolean | | | Starts playback when the slideshow loads. Applies only when `autoplay` or `autoScroll` is set. |
|
|
34
|
+
| scrollSpeed | scrollspeed | | number | `0.75` | `autoScroll` | Sets how fast the slides scroll, in pixels per frame. Use a higher number to scroll faster. Applies only when `autoScroll` is set. |
|
|
35
|
+
| startDelay | startdelay | | number | `1000` | `autoScroll` | Sets how long the slideshow waits before it starts or resumes scrolling, in milliseconds. Applies only when `autoScroll` is set. |
|
|
36
|
+
| pauseLabel | pauselabel | | string | `Pause slideshow` | | Deprecated: Use `ariaLabel.slideshow.pause` instead.<br>Sets the text screen readers announce for the pause button. Used only when the `ariaLabel.slideshow.pause` slot is empty. |
|
|
37
|
+
| playLabel | playlabel | | string | `Play slideshow` | | Deprecated: Use `ariaLabel.slideshow.play` instead.<br>Sets the text screen readers announce for the play button. Used only when the `ariaLabel.slideshow.play` slot is empty. |
|
|
25
38
|
|
|
26
39
|
### Methods
|
|
27
40
|
|
|
28
|
-
| Name | Parameters | Return | Description
|
|
29
|
-
| ---------- | -------------------------------------------------------------------- | ------ |
|
|
30
|
-
| play | None | | Starts
|
|
31
|
-
| register | `name` (string) - The name of the element that you want to register. | | Registers the custom element with the browser.
|
|
32
|
-
| scrollNext | None | | Scrolls to the next slide.
|
|
33
|
-
| scrollPrev | None | | Scrolls to the previous slide.
|
|
34
|
-
| stop | None | | Stops
|
|
41
|
+
| Name | Parameters | Return | Description |
|
|
42
|
+
| ---------- | -------------------------------------------------------------------- | ------ | --------------------------------------------------------------------------------- |
|
|
43
|
+
| play | None | | Starts automatic playback. Does nothing unless `autoplay` or `autoScroll` is set. |
|
|
44
|
+
| register | `name` (string) - The name of the element that you want to register. | | Registers the custom element with the browser. |
|
|
45
|
+
| scrollNext | None | | Scrolls to the next slide. |
|
|
46
|
+
| scrollPrev | None | | Scrolls to the previous slide. |
|
|
47
|
+
| stop | None | | Stops automatic playback. Does nothing unless `autoplay` or `autoScroll` is set. |
|
|
35
48
|
|
|
36
49
|
### Slots
|
|
37
50
|
|
|
38
|
-
| Name | Description
|
|
39
|
-
| ------------------------- |
|
|
40
|
-
| (default) |
|
|
41
|
-
| ariaLabel.scroll.left |
|
|
42
|
-
| ariaLabel.scroll.right |
|
|
43
|
-
| ariaLabel.slideshow.pause |
|
|
44
|
-
| ariaLabel.slideshow.play |
|
|
45
|
-
|
|
46
|
-
### CSS
|
|
47
|
-
|
|
48
|
-
| Name | Description
|
|
49
|
-
| ----------------- |
|
|
50
|
-
| next-button |
|
|
51
|
-
| play-pause-button |
|
|
52
|
-
| prev-button |
|
|
51
|
+
| Name | Relevant when | Description |
|
|
52
|
+
| ------------------------- | ------------- | ----------------------------------------------------------------------------------------------------- |
|
|
53
|
+
| (default) | | The slides. Each direct child element becomes one slide. |
|
|
54
|
+
| ariaLabel.scroll.left | `navigation` | Text screen readers announce for the previous slide button. Defaults to "Previous slide". |
|
|
55
|
+
| ariaLabel.scroll.right | `navigation` | Text screen readers announce for the next slide button. Defaults to "Next slide". |
|
|
56
|
+
| ariaLabel.slideshow.pause | | Text screen readers announce for the button that pauses the slideshow. Defaults to "Pause slideshow". |
|
|
57
|
+
| ariaLabel.slideshow.play | | Text screen readers announce for the button that starts the slideshow. Defaults to "Play slideshow". |
|
|
58
|
+
|
|
59
|
+
### CSS shadow parts
|
|
60
|
+
|
|
61
|
+
| Name | Relevant when | Description |
|
|
62
|
+
| ----------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
63
|
+
| next-button | `navigation` | The button that goes to the next slide, shown when `navigation` is set, except on touch devices. |
|
|
64
|
+
| play-pause-button | | The button that plays and pauses the slideshow, shown when `autoplay` is set, or when `autoScroll` is set on a device that isn't a touch device. |
|
|
65
|
+
| prev-button | `navigation` | The button that goes to the previous slide, shown when `navigation` is set, except on touch devices. |
|
|
53
66
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
54
67
|
|
|
55
68
|
## Basic
|
|
@@ -97,15 +110,15 @@ with several options such as autoplay, navigation controls, and pagination dots.
|
|
|
97
110
|
<div style="height: 480px">
|
|
98
111
|
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
99
112
|
</div>
|
|
100
|
-
</auro-slideshow></code></pre>
|
|
113
|
+
</auro-slideshow></code></pre>
|
|
101
114
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
102
115
|
</auro-accordion>
|
|
103
116
|
|
|
104
|
-
## Property
|
|
117
|
+
## Property and attribute examples
|
|
105
118
|
|
|
106
119
|
### Autoplay
|
|
107
120
|
|
|
108
|
-
|
|
121
|
+
Set `autoplay` to add a play and pause button, so users can stop and start the slideshow.
|
|
109
122
|
|
|
110
123
|
<div class="exampleWrapper">
|
|
111
124
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/autoplay.html) -->
|
|
@@ -150,17 +163,17 @@ Setting the `autoplay` attribute will render the play button so users can stop o
|
|
|
150
163
|
<div style="height: 480px">
|
|
151
164
|
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
152
165
|
</div>
|
|
153
|
-
</auro-slideshow></code></pre>
|
|
166
|
+
</auro-slideshow></code></pre>
|
|
154
167
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
155
168
|
</auro-accordion>
|
|
156
169
|
|
|
157
|
-
###
|
|
170
|
+
### Autoscroll
|
|
158
171
|
|
|
159
|
-
|
|
172
|
+
Set `autoScroll` to add a play and pause button. Unlike `autoplay`, the slideshow doesn't stop on each slide. It scrolls at a steady pace and stops when someone hovers over the slides, moves keyboard focus to a slide, drags the slides, or uses a control.
|
|
160
173
|
|
|
161
|
-
`pagination` and `navigation` controls
|
|
174
|
+
`pagination` and `navigation` controls don't work unless the slideshow is stopped.
|
|
162
175
|
|
|
163
|
-
`autoScroll`
|
|
176
|
+
`autoScroll` doesn't work on touch devices, where the primary pointer is coarse.
|
|
164
177
|
|
|
165
178
|
<div class="exampleWrapper">
|
|
166
179
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/autoscroll.html) -->
|
|
@@ -205,13 +218,13 @@ Setting the `autoScroll` attribute will also render the play button, but unlike
|
|
|
205
218
|
<div style="height: 480px; max-width: 400px;">
|
|
206
219
|
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=5" alt="Random image 5">
|
|
207
220
|
</div>
|
|
208
|
-
</auro-slideshow></code></pre>
|
|
221
|
+
</auro-slideshow></code></pre>
|
|
209
222
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
210
223
|
</auro-accordion>
|
|
211
224
|
|
|
212
225
|
### Delay
|
|
213
226
|
|
|
214
|
-
To
|
|
227
|
+
To change how long each slide shows, set `delay` on an `autoplay` slideshow to a number of milliseconds. The default is 7000, so each slide shows for 7 seconds.
|
|
215
228
|
|
|
216
229
|
<div class="exampleWrapper">
|
|
217
230
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/delay.html) -->
|
|
@@ -256,15 +269,15 @@ To set a custom slide duration on an `autoplay` slideshow, use the `delay` attri
|
|
|
256
269
|
<div style="height: 480px">
|
|
257
270
|
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
258
271
|
</div>
|
|
259
|
-
</auro-slideshow></code></pre>
|
|
272
|
+
</auro-slideshow></code></pre>
|
|
260
273
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
261
274
|
</auro-accordion>
|
|
262
275
|
|
|
263
|
-
### Full-
|
|
276
|
+
### Full-bleed preview
|
|
264
277
|
|
|
265
|
-
|
|
278
|
+
Set `fullBleed` to show parts of the previous and next slides beside the current slide. The slideshow stretches to the full width of the browser window.
|
|
266
279
|
|
|
267
|
-
**Note:** To
|
|
280
|
+
**Note:** To prevent horizontal scrolling, set `overflow-x: hidden` on a parent container. Don't set it on the `<body>` element, because that stops horizontal scrolling when fixed-width elements become wider than the page. The example sets it on `<body>` for demo purposes only.
|
|
268
281
|
|
|
269
282
|
<div class="exampleWrapper">
|
|
270
283
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/full-bleed.html) -->
|
|
@@ -321,13 +334,13 @@ To enable the slideshow to show a preview of the previous and next slides, use t
|
|
|
321
334
|
body {
|
|
322
335
|
overflow-x: hidden;
|
|
323
336
|
}
|
|
324
|
-
</style></code></pre>
|
|
337
|
+
</style></code></pre>
|
|
325
338
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
326
339
|
</auro-accordion>
|
|
327
340
|
|
|
328
341
|
### Loop
|
|
329
342
|
|
|
330
|
-
|
|
343
|
+
When `loop` is set, the slideshow goes back to the first slide after the last slide. When `loop` isn't set and `autoplay` or `autoScroll` is set, the slideshow stops on the last slide.
|
|
331
344
|
|
|
332
345
|
<div class="exampleWrapper">
|
|
333
346
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/loop.html) -->
|
|
@@ -372,17 +385,17 @@ If the `loop` attribute is on, the slideshow will go back to the first slide whe
|
|
|
372
385
|
<div style="height: 480px">
|
|
373
386
|
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
374
387
|
</div>
|
|
375
|
-
</auro-slideshow></code></pre>
|
|
388
|
+
</auro-slideshow></code></pre>
|
|
376
389
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
377
390
|
</auro-accordion>
|
|
378
391
|
|
|
379
392
|
### Navigation
|
|
380
393
|
|
|
381
|
-
|
|
394
|
+
Set `navigation` to add previous and next arrow buttons that let users move through the slides. The arrows appear only when the slides are hovered.
|
|
382
395
|
|
|
383
|
-
|
|
396
|
+
When `loop` isn't set, the arrow for a direction is hidden at the first or last slide.
|
|
384
397
|
|
|
385
|
-
|
|
398
|
+
The arrows don't appear on touch devices, where the primary pointer is coarse.
|
|
386
399
|
|
|
387
400
|
<div class="exampleWrapper">
|
|
388
401
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/navigation.html) -->
|
|
@@ -427,13 +440,13 @@ If `loop` is off, the respective arrow control will be disabled/hidden when the
|
|
|
427
440
|
<div style="height: 480px">
|
|
428
441
|
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
429
442
|
</div>
|
|
430
|
-
</auro-slideshow></code></pre>
|
|
443
|
+
</auro-slideshow></code></pre>
|
|
431
444
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
432
445
|
</auro-accordion>
|
|
433
446
|
|
|
434
447
|
### Pagination
|
|
435
448
|
|
|
436
|
-
|
|
449
|
+
Set `pagination` to show a dot for each slide. The current slide's dot is wider and filled, to match the progress bar.
|
|
437
450
|
|
|
438
451
|
<div class="exampleWrapper">
|
|
439
452
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/pagination.html) -->
|
|
@@ -478,13 +491,13 @@ Setting the `pagination` attribute will render pagination dots to indicate the n
|
|
|
478
491
|
<div style="height: 480px">
|
|
479
492
|
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
480
493
|
</div>
|
|
481
|
-
</auro-slideshow></code></pre>
|
|
494
|
+
</auro-slideshow></code></pre>
|
|
482
495
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
483
496
|
</auro-accordion>
|
|
484
497
|
|
|
485
|
-
###
|
|
498
|
+
### Play on init
|
|
486
499
|
|
|
487
|
-
|
|
500
|
+
Set `playOnInit` to start playing when the page loads. It applies only when `autoplay` or `autoScroll` is set. Without it, the slideshow starts playing only when the user clicks the play button or the `play()` method is called.
|
|
488
501
|
|
|
489
502
|
<div class="exampleWrapper">
|
|
490
503
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/playoninit.html) -->
|
|
@@ -529,13 +542,13 @@ Setting the `playOnInit` attribute will start playing the slideshow when the pag
|
|
|
529
542
|
<div style="height: 480px; max-width: 400px;">
|
|
530
543
|
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=5" alt="Random image 5">
|
|
531
544
|
</div>
|
|
532
|
-
</auro-slideshow></code></pre>
|
|
545
|
+
</auro-slideshow></code></pre>
|
|
533
546
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
534
547
|
</auro-accordion>
|
|
535
548
|
|
|
536
|
-
###
|
|
549
|
+
### Scroll speed
|
|
537
550
|
|
|
538
|
-
To
|
|
551
|
+
To change how fast an `autoScroll` slideshow moves, set `scrollSpeed` to a number of pixels per frame. The default is 0.75. Use a higher number to scroll faster. The number doesn't need to be whole.
|
|
539
552
|
|
|
540
553
|
<div class="exampleWrapper">
|
|
541
554
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/scrollspeed.html) -->
|
|
@@ -580,13 +593,13 @@ To set a custom speed on an `autoScroll` slideshow, use the `scrollSpeed` attrib
|
|
|
580
593
|
<div style="height: 480px; max-width: 400px;">
|
|
581
594
|
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=5" alt="Random image 5">
|
|
582
595
|
</div>
|
|
583
|
-
</auro-slideshow></code></pre>
|
|
596
|
+
</auro-slideshow></code></pre>
|
|
584
597
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
585
598
|
</auro-accordion>
|
|
586
599
|
|
|
587
|
-
###
|
|
600
|
+
### Start delay
|
|
588
601
|
|
|
589
|
-
To
|
|
602
|
+
To change how long an `autoScroll` slideshow waits before it starts or resumes scrolling, set `startDelay` to a number of milliseconds. The default is 1000, which is 1 second.
|
|
590
603
|
|
|
591
604
|
<div class="exampleWrapper">
|
|
592
605
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/startdelay.html) -->
|
|
@@ -631,28 +644,28 @@ To set a custom delay before the `autoScroll` restarts, use the `startDelay` att
|
|
|
631
644
|
<div style="height: 480px; max-width: 400px;">
|
|
632
645
|
<img style="object-fit: cover;" src="https://picsum.photos/400/480?random=5" alt="Random image 5">
|
|
633
646
|
</div>
|
|
634
|
-
</auro-slideshow></code></pre>
|
|
647
|
+
</auro-slideshow></code></pre>
|
|
635
648
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
636
649
|
</auro-accordion>
|
|
637
650
|
|
|
638
|
-
## Slot
|
|
651
|
+
## Slot examples
|
|
639
652
|
|
|
640
|
-
### Slots for
|
|
653
|
+
### Slots for aria labels
|
|
641
654
|
|
|
642
|
-
To
|
|
643
|
-
- `ariaLabel.scroll.left
|
|
644
|
-
- `ariaLabel.scroll.right
|
|
645
|
-
- `ariaLabel.slideshow.play
|
|
646
|
-
- `ariaLabel.slideshow.pause
|
|
655
|
+
To change the text screen readers announce for the slideshow controls, use these slots:
|
|
656
|
+
- `ariaLabel.scroll.left`: Previous slide button
|
|
657
|
+
- `ariaLabel.scroll.right`: Next slide button
|
|
658
|
+
- `ariaLabel.slideshow.play`: Play slideshow button
|
|
659
|
+
- `ariaLabel.slideshow.pause`: Pause slideshow button
|
|
647
660
|
|
|
648
661
|
<div class="exampleWrapper">
|
|
649
662
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/slots_aria-label.html) -->
|
|
650
663
|
<!-- The below content is automatically added from ./../apiExamples/slots_aria-label.html -->
|
|
651
664
|
<auro-slideshow autoplay navigation>
|
|
652
|
-
<span slot="ariaLabel.scroll.left">
|
|
653
|
-
<span slot="ariaLabel.scroll.right">
|
|
654
|
-
<span slot="ariaLabel.slideshow.play">
|
|
655
|
-
<span slot="ariaLabel.slideshow.pause">
|
|
665
|
+
<span slot="ariaLabel.scroll.left">Show previous slide</span>
|
|
666
|
+
<span slot="ariaLabel.scroll.right">Show next slide</span>
|
|
667
|
+
<span slot="ariaLabel.slideshow.play">Play the slideshow</span>
|
|
668
|
+
<span slot="ariaLabel.slideshow.pause">Pause the slideshow</span>
|
|
656
669
|
<div style="height: 480px">
|
|
657
670
|
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
658
671
|
</div>
|
|
@@ -677,10 +690,10 @@ To customize the aria-labels for the slideshow controls, use the following slots
|
|
|
677
690
|
<!-- The below code snippet is automatically added from ./../apiExamples/slots_aria-label.html -->
|
|
678
691
|
|
|
679
692
|
<pre class="language-html"><code class="language-html"><auro-slideshow autoplay navigation>
|
|
680
|
-
<span slot="ariaLabel.scroll.left">
|
|
681
|
-
<span slot="ariaLabel.scroll.right">
|
|
682
|
-
<span slot="ariaLabel.slideshow.play">
|
|
683
|
-
<span slot="ariaLabel.slideshow.pause">
|
|
693
|
+
<span slot="ariaLabel.scroll.left">Show previous slide</span>
|
|
694
|
+
<span slot="ariaLabel.scroll.right">Show next slide</span>
|
|
695
|
+
<span slot="ariaLabel.slideshow.play">Play the slideshow</span>
|
|
696
|
+
<span slot="ariaLabel.slideshow.pause">Pause the slideshow</span>
|
|
684
697
|
<div style="height: 480px">
|
|
685
698
|
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
686
699
|
</div>
|
|
@@ -696,13 +709,13 @@ To customize the aria-labels for the slideshow controls, use the following slots
|
|
|
696
709
|
<div style="height: 480px">
|
|
697
710
|
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
698
711
|
</div>
|
|
699
|
-
</auro-slideshow></code></pre>
|
|
712
|
+
</auro-slideshow></code></pre>
|
|
700
713
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
701
714
|
</auro-accordion>
|
|
702
715
|
|
|
703
|
-
## Common
|
|
716
|
+
## Common usage patterns
|
|
704
717
|
|
|
705
|
-
### Full-
|
|
718
|
+
### Full-bleed and autoscroll preview
|
|
706
719
|
|
|
707
720
|
<div class="exampleWrapper">
|
|
708
721
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/full-bleed-autoscroll.html) -->
|
|
@@ -777,6 +790,6 @@ To customize the aria-labels for the slideshow controls, use the following slots
|
|
|
777
790
|
body {
|
|
778
791
|
overflow-x: hidden;
|
|
779
792
|
}
|
|
780
|
-
</style></code></pre>
|
|
793
|
+
</style></code></pre>
|
|
781
794
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
782
795
|
</auro-accordion>
|