diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index ac41eb1..9d04b2b 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -80,7 +80,8 @@ export const CATEGORIES = [ 'Flowing Menu', 'Elastic Slider', 'Stack', - 'Chroma Grid' + 'Chroma Grid', + 'Rolling Gallery' ] }, { diff --git a/src/constants/Components.ts b/src/constants/Components.ts index d543dc2..32129c0 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -69,6 +69,7 @@ const components = { 'tilted-card': () => import('../demo/Components/TiltedCardDemo.vue'), 'stack': () => import('../demo/Components/StackDemo.vue'), 'chroma-grid': () => import('../demo/Components/ChromaGridDemo.vue'), + 'rolling-gallery': () => import('../demo/Components/RollingGalleryDemo.vue'), }; const backgrounds = { diff --git a/src/constants/code/Components/rollingGalleryCode.ts b/src/constants/code/Components/rollingGalleryCode.ts new file mode 100644 index 0000000..19b8085 --- /dev/null +++ b/src/constants/code/Components/rollingGalleryCode.ts @@ -0,0 +1,26 @@ +import code from '@content/Components/RollingGallery/RollingGallery.vue?raw'; +import { createCodeObject } from '@/types/code.ts'; + +export const rollingGallery = createCodeObject(code, 'Components/RollingGallery', { + installation: `npm install motion-v`, + usage: ` + + + +` +}); diff --git a/src/content/Components/RollingGallery/RollingGallery.vue b/src/content/Components/RollingGallery/RollingGallery.vue new file mode 100644 index 0000000..33fef45 --- /dev/null +++ b/src/content/Components/RollingGallery/RollingGallery.vue @@ -0,0 +1,392 @@ + + + + + + + + + + + + + + + + + diff --git a/src/demo/Components/RollingGalleryDemo.vue b/src/demo/Components/RollingGalleryDemo.vue new file mode 100644 index 0000000..60a27d1 --- /dev/null +++ b/src/demo/Components/RollingGalleryDemo.vue @@ -0,0 +1,94 @@ + + + + + + + + Your trip to Thailand. + + + + + + + + + + + + + + + + + + + + + + + + + + + + +