All components

Hovercard1

Hovercard1 is a React and Tailwind CSS card component from UI Layouts, licensed MIT. Copy it and paste it into your project.

UI Layouts MIT cards

What it is

Hovercard1 is a React and Tailwind CSS card component from UI Layouts, licensed MIT. Copy it and paste it into your project.

How to use it

Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.

Open in the catalogue

Five free copies a month. No card.

Needs

npm i motion

Licence

This component comes from UI Layouts and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.

Hovercard1

./registry/components/card/hover-card1.tsx
import { MoveUpRight } from 'lucide-react';
import Image from 'next/image';
import React, { useState } from 'react';

function HoverCard1() {
  return (
    <>
      <article className={` relative pb-4  overflow-hidden`}>
        <div className='w-full rounded-md h-full overflow-hidden'>
          <Image
            src={
              'https://images.unsplash.com/photo-1726824766931-4bd8b59af37c?q=80&w=800&auto=format&fit=crop'
            }
            alt={'image'}
            height={600}
            width={1200}
            className='h-full w-full object-cover rounded-xl hover:scale-100 scale-105 transition-all duration-300'
          />
        </div>
        <div className='absolute bottom-2 text-black w-full p-4 flex justify-between items-center'>
          <h3 className='sm:text-xl text-sm bg-black text-white rounded-xl p-2 px-4'>
            Distrokings
          </h3>

          <button className='group relative inline-flex h-12 w-12 items-center justify-center overflow-hidden rounded-full bg-[#080918]   font-medium text-neutral-200 border-2 transition-all duration-300 hover:w-24'>
            <div className='inline-flex whitespace-nowrap opacity-0 transition-all duration-200 group-hover:-translate-x-3 group-hover:opacity-100'>
              Visit
            </div>
            <div className='absolute right-3'>
              <MoveUpRight />
            </div>
          </button>
        </div>
      </article>
    </>
  );
}

export default HoverCard1;

Similar components