зеркало из
https://github.com/kodackx/disinformation-quest.git
synced 2025-10-29 20:46:05 +02:00
Revamp Infiltrate Animation
Updated the animation for the "Infiltrate Niche Online Communities" strategy to enhance visual effects and engagement. [skip gpt_engineer]
Этот коммит содержится в:
родитель
21918356cb
Коммит
b9f0402de3
@ -2,9 +2,10 @@ import React from 'react';
|
||||
import { motion } from 'framer-motion';
|
||||
|
||||
export const CommunityAnimation = ({ className = '' }: { className?: string }) => {
|
||||
// Create multiple community groups with members
|
||||
const groups = Array.from({ length: 3 }, (_, i) => ({
|
||||
x: 25 + i * 25,
|
||||
y: 50,
|
||||
x: 25 + i * 25, // Spread groups horizontally
|
||||
y: 50, // Center vertically
|
||||
members: Array.from({ length: 8 }, (_, j) => ({
|
||||
id: i * 8 + j,
|
||||
initialX: Math.random() * 100,
|
||||
@ -16,6 +17,7 @@ export const CommunityAnimation = ({ className = '' }: { className?: string }) =
|
||||
<div className={`relative w-full h-40 overflow-hidden bg-black/20 rounded-lg ${className}`}>
|
||||
{groups.map((group, groupIndex) => (
|
||||
<React.Fragment key={groupIndex}>
|
||||
{/* Individual members that will converge into groups */}
|
||||
{group.members.map((member) => (
|
||||
<motion.div
|
||||
key={member.id}
|
||||
@ -37,6 +39,8 @@ export const CommunityAnimation = ({ className = '' }: { className?: string }) =
|
||||
}}
|
||||
/>
|
||||
))}
|
||||
|
||||
{/* Community boundary circles */}
|
||||
<motion.div
|
||||
className="absolute w-20 h-20 rounded-full border-2 border-yellow-500/30"
|
||||
style={{
|
||||
|
||||
Загрузка…
x
Ссылка в новой задаче
Block a user