|
58 | 58 | .max-widthed.mt8.mb3.title Github project |
59 | 59 | w-flex.max-widthed.mb5(align-center shrink) |
60 | 60 | w-icon.pr5.lightgrey--text(size="46") fab fa-github |
61 | | - a(href="https://github.com/antoniandre/vueper-slides" target="_blank") //github.com/antoniandre/vueper-slides #[w-icon(small color="primary") open_in_new] |
| 61 | + a(href="https://github.com/antoniandre/vueper-slides" target="_blank") //github.com/antoniandre/vueper-slides #[w-icon(color="primary") open_in_new] |
62 | 62 |
|
63 | 63 | w-flex.max-widthed.my8(align-center) |
64 | 64 | w-icon.mr4(size="50" color="pink lighten-3") favorite |
|
148 | 148 | h2 |
149 | 149 | a(href="#examples" v-scroll-to="'#examples'") Examples of Use |
150 | 150 | a(id="examples" name="examples") |
151 | | - p Here is a list of useful examples, but you can also try it yourself on #[a(href="https://codepen.io/antoniandre/pen/jevjoQ" target="_blank") codepen.io #[w-icon(small color="primary") open_in_new]]. |
| 151 | + p Here is a list of useful examples, but you can also try it yourself on #[a(href="https://codepen.io/antoniandre/pen/jevjoQ" target="_blank") codepen.io #[w-icon(color="primary") open_in_new]]. |
152 | 152 |
|
153 | 153 | h3 |
154 | 154 | a(href="#ex--simplest-ever" v-scroll-to="'#ex--simplest-ever'") Simplest Ever |
|
183 | 183 | @autoplay-pause="internalAutoPlaying = false" |
184 | 184 | @autoplay-resume="internalAutoPlaying = true") |
185 | 185 | template(v-slot:pause) |
186 | | - w-icon(large color="white") pause_circle_outline |
| 186 | + w-icon(lg color="white") pause_circle_outline |
187 | 187 | vueper-slide(v-for="(slide, i) in slides1" :key="slide.id" :title="slide.title" :content="slide.content" :style="'background-color: ' + colors[i % 4]") |
188 | 188 |
|
189 | 189 | p.subtitle-1.mt6 Basic autoplay (with pause on mouseover) source code: |
|
266 | 266 |
|
267 | 267 | vueper-slides.ex--arrows-and-bullets-2.no-shadow(:infinite="false" :slide-ratio="0.22" :bullets="false") |
268 | 268 | template(v-slot:arrow-left) |
269 | | - w-icon(color="white" x-large) undo |
| 269 | + w-icon(color="white" xl) undo |
270 | 270 | template(v-slot:arrow-right) |
271 | | - w-icon(color="white" x-large) redo |
| 271 | + w-icon(color="white" xl) redo |
272 | 272 | vueper-slide( |
273 | 273 | v-for="i in 5" |
274 | 274 | :key="i" |
|
840 | 840 | div.grey--text(v-if="logs") |
841 | 841 | strong // event-name: |
842 | 842 | span.ml2 params |
843 | | - w-button(color="primary" x-small outlined @click="logs = []") |
| 843 | + w-button(color="primary" sm outlined @click="logs = []") |
844 | 844 | w-icon.mr1(small) close |
845 | 845 | | Clear logs |
846 | 846 | div(v-for="(log, i) in logs") |
|
1205 | 1205 | p. |
1206 | 1206 | This example demonstrates how to control Vueper Slides from wherever you want. |
1207 | 1207 | ...In your code, not wherever on Earth.#[br] |
1208 | | - By using a #[a(href="https://vuejs.org/v2/api/#ref" target="_blank") Vue JS reference #[w-icon(small color="primary") open_in_new]] on your slideshow, you can access any method it |
| 1208 | + By using a #[a(href="https://vuejs.org/v2/api/#ref" target="_blank") Vue JS reference #[w-icon(color="primary") open_in_new]] on your slideshow, you can access any method it |
1209 | 1209 | contains from outside.#[br] |
1210 | 1210 | Now that you have the power, here is a list of methods you may find useful: |
1211 | 1211 | ul.max-widthed.mb3 |
|
1902 | 1902 | Sets the slideshow ratio so it will naturally stay ratio-ed on different browser width.#[br] |
1903 | 1903 | See the #[a(href="#ex--events" v-scroll-to="'#ex--events'") Events] example or #[a(href="#ex--breakpoints" v-scroll-to="'#ex--breakpoints'") Using Breakpoints] example. |
1904 | 1904 | #[br]More examples are available in a |
1905 | | - #[a(href="https://codepen.io/antoniandre/pen/KBXWPP" target="_blank") Codepen demo #[w-icon(small color="primary") open_in_new]]. |
| 1905 | + #[a(href="https://codepen.io/antoniandre/pen/KBXWPP" target="_blank") Codepen demo #[w-icon(color="primary") open_in_new]]. |
1906 | 1906 | highlight. |
1907 | 1907 | Setting the ratio avoids heavier javascript width and height calculations on resize.#[br] |
1908 | 1908 | But thanks to the default value, Vueper Slides' got your back if you don't set any. |
|
2119 | 2119 | a(href="#available-css-classes" v-scroll-to="'#available-css-classes'") Available CSS Classes |
2120 | 2120 | a(id="available-css-classes" name="available-css-classes") |
2121 | 2121 | p. |
2122 | | - Vueper Slides uses the #[a(href="http://getbem.com/naming/" target="_blank") BEM #[w-icon(small color="primary") open_in_new]] |
| 2122 | + Vueper Slides uses the #[a(href="http://getbem.com/naming/" target="_blank") BEM #[w-icon(color="primary") open_in_new]] |
2123 | 2123 | naming convention. Styling any element should be quite simple and straightforward.#[br] |
2124 | 2124 |
|
2125 | 2125 | ul.max-widthed |
|
0 commit comments