Added <LogoLoop /> Animation

This commit is contained in:
Utkarsh-Singhal-26
2025-08-20 08:22:20 +05:30
parent c8cee94519
commit 0388f7cddc
6 changed files with 669 additions and 2 deletions

View File

@@ -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',

View File

@@ -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'),

View 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>`
});