diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 385ac12..646629f 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -48,6 +48,7 @@ export const CATEGORIES = [ 'Flying Posters', 'Card Swap', 'Infinite Scroll', + 'Tilted Card', 'Glass Icons', 'Decay Card', 'Flowing Menu', diff --git a/src/constants/Components.ts b/src/constants/Components.ts index d173dc8..ac70fc8 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -40,6 +40,7 @@ const components = { 'decay-card': () => import("../demo/Components/DecayCardDemo.vue"), 'flowing-menu': () => import("../demo/Components/FlowingMenuDemo.vue"), 'elastic-slider': () => import("../demo/Components/ElasticSliderDemo.vue"), + 'tilted-card': () => import("../demo/Components/TiltedCardDemo.vue"), }; const backgrounds = { diff --git a/src/constants/code/Components/tiltedCardCode.ts b/src/constants/code/Components/tiltedCardCode.ts new file mode 100644 index 0000000..84e331b --- /dev/null +++ b/src/constants/code/Components/tiltedCardCode.ts @@ -0,0 +1,34 @@ +import code from '@content/Components/TiltedCard/TiltedCard.vue?raw' +import type { CodeObject } from '../../../types/code' + +export const tiltedCard: CodeObject = { + cli: `npx jsrepo add https://vue-bits.dev/ui/Components/TiltedCard`, + installation: `npm install motion-v`, + usage: ` + + + + Your overlay content here + + + + + +`, + code +} \ No newline at end of file diff --git a/src/content/Components/TiltedCard/TiltedCard.vue b/src/content/Components/TiltedCard/TiltedCard.vue new file mode 100644 index 0000000..8516b8f --- /dev/null +++ b/src/content/Components/TiltedCard/TiltedCard.vue @@ -0,0 +1,137 @@ + + + + This effect is not optimized for mobile. Check on desktop. + + + + + + + + + + + + {{ captionText }} + + + + + \ No newline at end of file diff --git a/src/demo/Components/TiltedCardDemo.vue b/src/demo/Components/TiltedCardDemo.vue new file mode 100644 index 0000000..2df3e30 --- /dev/null +++ b/src/demo/Components/TiltedCardDemo.vue @@ -0,0 +1,183 @@ + + + + + + + + + Kendrick Lamar - GNX + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file
+ Kendrick Lamar - GNX +