mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 22:49:31 -07:00
Added <LogoLoop /> Animation
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Highlighted sidebar items
|
||||
export const NEW = ['Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Text Type', 'Glass Surface', 'Sticker Peel', 'Scroll Stack', 'Faulty Terminal', 'Pill Nav', 'Card Nav'];
|
||||
export const NEW = ['Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Text Type', 'Glass Surface', 'Sticker Peel', 'Scroll Stack', 'Faulty Terminal', 'Pill Nav', 'Card Nav', 'Logo Loop'];
|
||||
export const UPDATED = [];
|
||||
|
||||
// Used for main sidebar navigation
|
||||
@@ -38,6 +38,7 @@ export const CATEGORIES = [
|
||||
'Fade Content',
|
||||
'Noise',
|
||||
'Splash Cursor',
|
||||
'Logo Loop',
|
||||
'Pixel Transition',
|
||||
'Target Cursor',
|
||||
'Sticker Peel',
|
||||
|
||||
@@ -3,6 +3,7 @@ const animations = {
|
||||
'animated-content': () => import('../demo/Animations/AnimatedContentDemo.vue'),
|
||||
'pixel-transition': () => import('../demo/Animations/PixelTransitionDemo.vue'),
|
||||
'glare-hover': () => import('../demo/Animations/GlareHoverDemo.vue'),
|
||||
'logo-loop': () => import('../demo/Animations/LogoLoopDemo.vue'),
|
||||
'magnet-lines': () => import('../demo/Animations/MagnetLinesDemo.vue'),
|
||||
'click-spark': () => import('../demo/Animations/ClickSparkDemo.vue'),
|
||||
'ribbons': () => import('../demo/Animations/RibbonsDemo.vue'),
|
||||
|
||||
55
src/constants/code/Animations/logoLoopCode.ts
Normal file
55
src/constants/code/Animations/logoLoopCode.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
import code from '@/content/Animations/LogoLoop/LogoLoop.vue?raw';
|
||||
import { createCodeObject } from '@/types/code';
|
||||
|
||||
export const logoLoop = createCodeObject(code, 'Animations/LogoLoop', {
|
||||
usage: `<template>
|
||||
<div :style="{ height: '200px', position: 'relative', overflow: 'hidden' }">
|
||||
<LogoLoop
|
||||
:logos="techLogos"
|
||||
:speed="120"
|
||||
direction="left"
|
||||
:logoHeight="48"
|
||||
:gap="40"
|
||||
:pauseOnHover="true"
|
||||
:scaleOnHover="true"
|
||||
:fadeOut="true"
|
||||
fadeOutColor="#ffffff"
|
||||
ariaLabel="Technology partners"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import LogoLoop from './LogoLoop.vue';
|
||||
|
||||
const techLogos = [
|
||||
{
|
||||
node: '<i class="pi pi-code" style="font-size: 2rem;"></i>',
|
||||
title: "Development",
|
||||
href: "https://vuejs.org"
|
||||
},
|
||||
{
|
||||
node: '<i class="pi pi-desktop" style="font-size: 2rem;"></i>',
|
||||
title: "Frontend",
|
||||
href: "https://vitejs.dev"
|
||||
},
|
||||
{
|
||||
node: '<i class="pi pi-server" style="font-size: 2rem;"></i>',
|
||||
title: "Backend",
|
||||
href: "https://nodejs.org"
|
||||
},
|
||||
{
|
||||
node: '<i class="pi pi-database" style="font-size: 2rem;"></i>',
|
||||
title: "Database",
|
||||
href: "https://www.postgresql.org"
|
||||
},
|
||||
];
|
||||
|
||||
// Alternative with image sources
|
||||
const imageLogos = [
|
||||
{ src: "/logos/company1.png", alt: "Company 1", href: "https://company1.com" },
|
||||
{ src: "/logos/company2.png", alt: "Company 2", href: "https://company2.com" },
|
||||
{ src: "/logos/company3.png", alt: "Company 3", href: "https://company3.com" },
|
||||
];
|
||||
</script>`
|
||||
});
|
||||
Reference in New Issue
Block a user