forked from thomasbertet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathParallaxView.vue
executable file
·46 lines (43 loc) · 1.44 KB
/
ParallaxView.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<template lang="pug">
component-view(v-bind:doc="doc")
</template>
<script>
export default {
name: 'parallax-view',
data () {
return {
doc: {
component: 'parallax',
edit: 'ParallaxView',
title: 'Parallax',
desc: 'The <code>v-parallax</code> component creates a 3d effect that makes an image appear to scroll slower than the window.',
examples: [
{ header: 'Default', file: 'parallax/1', desc: 'A parallax causes a shift in a background image when the user scrolls the page.' },
{ header: 'With content', file: 'parallax/2', desc: 'You can also place any content inside of the parallax. This allows you to use the parallax as a hero image.' },
{ header: 'Custom height', file: 'parallax/3', desc: 'You can specify a custom height on a parallax. Keep in mind this can break the parallax if your image is not sized properly' }
],
props: {
'v-parallax': {
params: [
[
'height',
'Number',
'500',
'The height of the parallax container'
],
[
'src',
'String',
'Required',
'The image to parallax'
]
]
}
}
}
}
}
}
</script>
<style lang="stylus">
</style>