YoucefBnm Bnm

Image Player

Galleries 174

About

- Image player component, flexible to use takes array of images urls and interval, also you can use any html image tag '<img />' (by default) or '<picture>' or use next 'Image' this on is very recommended (check the demo) as next optimized images makes load fast. ๐Ÿ‘‰ Docs: https://systaliko-ui.vercel.app/docs/blocks/image-player

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Image Player to your project and fits it to your theme.

Code

How Image Player is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

'use client'
import { ImagePlayer } from "@/components/ui/image-player";
import Image from 'next/image';

const IMAGES = [
  'https://cdn.21st.dev/assets/mirror/e7/e7b015e46ffb9c1eedc33dc96aed89153f0b51dab58d99f4496fb14fc8ebe61c.jpg',
  'https://cdn.21st.dev/assets/mirror/4a/4a205b8a966ed612c8ab5a035843f7ecdf45f7becfe678d2ebd480a06e7a1fde.jpg',
  'https://cdn.21st.dev/assets/mirror/6d/6d5d6222fd6988a0360ddc2294c46a7fe9248eada9299bb035667c963f9a08b9.jpg',
  'https://cdn.21st.dev/assets/mirror/fc/fcb00c084011c54dca7a9b686e78f595060aa33f46f0bd3aa259b51fbd365026.jpg',
];

export default function DemoOne() {
  return (<div className="h-screen p-12 flex items-center justify-center">
      <ImagePlayer
        images={IMAGES}
        interval={200}
        renderImage={(src) => (
          <Image
            src={src}
            width={400}
            height={300}
            className="size-full h-auto max-h-full max-w-xl object-cover inline-block align-middle"
            alt="showcalse"
          />
        )}
      />
    </div>)
}

More by YoucefBnm Bnm

View all
  • Animated Slideshow

    Animated Slideshow

    2.2K
  • Hero Gallery Scroll Animation

    Hero Gallery Scroll Animation

    1.5K
  • Animated Gallery

    Animated Gallery

    1.4K
  • Animated Video on Scroll

    Animated Video on Scroll

    1.4K
  • Animated Cards Stack

    Animated Cards Stack

    1.3K
  • Cards Stack

    Cards Stack

    1.1K
  • cta section with gallery

    cta section with gallery

    672
  • Hero Video

    Hero Video

    538

More in Galleries

View all
  • Thumbnail image viewer

    Thumbnail image viewer

    43
  • File Upload

    File Upload

    18
  • Editorial Collage Hero

    Editorial Collage Hero

    430
  • 3D Parallax Unfurling Gallery

    3D Parallax Unfurling Gallery

    981
  • Image Gallery

    Image Gallery

    123
  • Tilted Grid Hero

    Tilted Grid Hero

    1.5K
  • Elastic Gallery

    Elastic Gallery

    908
  • Hero Section 6

    Hero Section 6

    882