|
160 | 160 | v-icon(large color="white") pause_circle_outline
|
161 | 161 | vueper-slide(v-for="(slide, i) in slides1" :key="slide.id" :title="slide.title" :content="slide.content" :style="'background-color: ' + colors[i % 4]")
|
162 | 162 |
|
163 |
| - .subtitle-1.mt-6 Basic autoplay (with pause on mouseover) source code: |
| 163 | + p.subtitle-1.mt-6 Basic autoplay (with pause on mouseover) source code: |
164 | 164 | ssh-pre.mt-2(language="html-vue" label="Vue Template").
|
165 | 165 | <vueper-slides autoplay>
|
166 | 166 | <vueper-slide v-for="(slide, i) in slides"
|
|
173 | 173 | </template>
|
174 | 174 | </vueper-slides>
|
175 | 175 |
|
176 |
| - .subtitle-1 This example full source code: |
| 176 | + p.subtitle-1 This example full source code: |
177 | 177 | ssh-pre.mt-2(language="html-vue" label="Vue Template").
|
178 | 178 | <button @click="$refs.myVueperSlides[`${autoPlaying ? 'pause' : 'resume'}Autoplay`]();autoPlaying = !autoPlaying">
|
179 | 179 | {{ "\{\{ autoPlaying ? 'Pause' : 'Resume' \}\}" }}
|
|
213 | 213 | })
|
214 | 214 |
|
215 | 215 | h3
|
216 |
| - a(href="#ex--arrows-and-bullets") Arrows & Bullets |
| 216 | + a(href="#ex--arrows-and-bullets") Custom Arrows & Bullets |
217 | 217 | a(name="ex--arrows-and-bullets")
|
218 | 218 | p.
|
219 | 219 | This example uses custom arrows and positions the bullets outside of the slideshow.#[br]
|
|
344 | 344 | vueper-slides
|
345 | 345 | vueper-slide(v-for="i in 4" :key="i" :style="'background-color: ' + ['#ff5252', '#42b983'][i % 2]")
|
346 | 346 | template(v-slot:slide-content)
|
347 |
| - v-icon(color="white") check |
348 |
| - | Complex content {{ i.toString() }} with Vue.js |
349 |
| - | {{ 1 === 1 ? 'interpreted' : 'non-interpreted' }} compilable content like |
350 |
| - | components & #[span(v-pre) {{ mustaches }}]. |
| 347 | + .subtitle-1 |
| 348 | + v-icon.mr-2(color="white") check |
| 349 | + | Complex content {{ i.toString() }} with Vue.js |
| 350 | + | {{ 1 === 1 ? 'interpreted' : 'non-interpreted' }} compilable content like |
| 351 | + | components & #[span(v-pre) {{ mustaches }}]. |
351 | 352 | ssh-pre(language="html-vue" label="HTML Vue Template").
|
352 | 353 | <vueper-slides>
|
353 | 354 | <vueper-slide
|
|
374 | 375 | Well, nothing to do really. It will just update by itself!
|
375 | 376 | #[br]For this demonstration the content is complex (refer to #[a(href="#ex--complex-slide-title-and-content") Complex Slide Title & Content] for more details) and uses
|
376 | 377 | Vue JS Vuetify components like #[span.code v-layout], #[span.code v-icon] & mustaches #[span.code(v-pre) {{ }}].
|
377 |
| - v-layout.max-widthed(align-start wrap) |
378 |
| - v-layout.flex.xs12.sm6(align-center) |
379 |
| - div Try it: |
380 |
| - v-layout.flex.xs10.sm11(align-center wrap) |
381 |
| - v-btn.ma-1(color="primary" @click="toggleSlidesTime" small) |
382 |
| - v-icon.pr-2 {{ slidesTimeTimerId ? 'highlight_off' : 'access_time' }} |
383 |
| - | {{ slidesTimeTimerId ? 'Stop' : 'Keep' }} updating time |
384 |
| - v-slide-x-transition.xs6.sm3 |
385 |
| - v-chip(v-show="slidesTimeTimerId === 0" small outlined disabled) CPU says THANK YOU! |
386 |
| - v-layout.flex.xs12.sm6.mb-4(align-center wrap) |
387 |
| - v-btn.ma-1(color="primary" @click="contentPositionChange" small) |
| 378 | + v-layout.max-widthed.mt-1.mb-4(align-center wrap) |
| 379 | + v-layout.shrink.mr-4(align-center) |
| 380 | + | Try it: |
| 381 | + v-btn.mx-2(color="primary" @click="toggleSlidesTime" small) |
| 382 | + v-icon.pr-2 {{ slidesTimeTimerId ? 'highlight_off' : 'access_time' }} |
| 383 | + | {{ slidesTimeTimerId ? 'Stop' : 'Keep' }} updating time |
| 384 | + v-expand-x-transition |
| 385 | + v-chip(v-if="!slidesTimeTimerId" small outlined) CPU says THANK YOU! |
| 386 | + v-layout(align-center wrap) |
| 387 | + v-btn.mx-2(color="primary" @click="contentPositionChange" small) |
388 | 388 | v-icon swap_vert
|
389 | 389 | | Move content position
|
390 | 390 | strong.code slide-content-outside="#[span.primary--text {{ contentPosition }}]"
|
|
398 | 398 | template(v-slot:slide-content)
|
399 | 399 | v-layout(align-center justify-center)
|
400 | 400 | v-icon.pr-3(color="white" size="5em") access_time
|
401 |
| - div.text-xs-left |
402 |
| - div.py-2.title {{ slide.title }} |
| 401 | + .text-left |
| 402 | + .headline {{ slide.title }} |
403 | 403 | div {{ slide.content }}
|
404 | 404 | ssh-pre(language="html-vue" label="HTML Vue Template").
|
405 | 405 | <button @click="toggleSlidesTime">Keep updating time</button>
|
406 |
| - <vueper-slides :slide-ratio="1/4" :slide-content-outside="contentPosition"> |
| 406 | + |
| 407 | + <vueper-slides :slide-ratio="1/4" autoplay :slide-content-outside="contentPosition"> |
407 | 408 | <vueper-slide
|
408 | 409 | v-for="(slide, i) in slides"
|
409 | 410 | :key="i"
|
410 |
| - :title="slide.title" |
411 |
| - :content="slide.content" |
412 | 411 | :style="'background-color: ' + ['#42b983', '#ff5252'][i % 2]">
|
413 | 412 | <template slot:slide-content>
|
414 |
| - <v-layout"> |
415 |
| - <v-icon>access_time</v-icon> |
| 413 | + <div class="flex"> |
| 414 | + <i "icon icon-access-time"></i> |
416 | 415 | <div>
|
417 | 416 | <div>{{ '\{\{ slide.title \}\}' }}</div>
|
418 | 417 | <div>{{ '\{\{ slide.content \}\}' }}</div>
|
419 | 418 | </div>
|
420 |
| - </v-layout> |
| 419 | + </div> |
421 | 420 | </template>
|
422 | 421 | </vueper-slide>
|
423 | 422 | </vueper-slides>
|
|
535 | 534 | This example demonstrates how to use Vueper Slides in a center mode.#[br]
|
536 | 535 | It also has a shorter transition speed #[span.code transition-speed='250']
|
537 | 536 | and no shadow thanks to the #[span.code no-shadow] class.
|
538 |
| - vueper-slides.no-shadow.ex--center-mode(arrows-outside bullets-outside transition-speed="250") |
| 537 | + vueper-slides.no-shadow.ex--center-mode.pt-6(arrows-outside bullets-outside transition-speed="250") |
539 | 538 | vueper-slide(v-for="i in 6" :key="i" :title="i.toString()" :style="'background-color: ' + ['#ff5252', '#42b983'][i % 2]")
|
540 | 539 | ssh-pre(language="html-vue" label="HTML Vue Template").
|
541 | 540 | <vueper-slides class="no-shadow" arrows-outside bullets-outside transition-speed="250">
|
|
0 commit comments