UIPin
ComponentsIconsIllustrationsMotionTemplatesApps
Boards
UIPin

Free, open-source UI components, icons, illustrations, motion, templates and apps, in one search. Every item links to its source and licence.

UIPin is free. If it saved you time, you can keep it running:

Buy me a coffee
ComponentsIconsIllustrationsMotionTemplatesAppsLibrariesCompareNew this weekMCP for agentsBoardsPrivacy

Components, icons and artwork belong to their authors and are shown under their open-source licences.

SmoothUI/Features 3

Cards
1 of 3
Compiling

Theme it

Every preview, live

Brand colour

Corner radius

Font

Recolours shadcn’s tokens, Tailwind’s accent colours and colours set in the code. Red, amber and green classes stay, since they usually mean error, warning or success.

3 versions·1 library

  • Features 3
  • Features 1
  • Features 2

Features 3

Alternating features block with side-by-side layout

npx shadcn@latest add https://smoothui.dev/r/features-3.json
Open in v0 Docs Repo
Library
SmoothUI
License
MIT
Stack
React · Tailwind CSS · animated
Packages
motion
Also adds
app-icons, cast, component-meta, index, people, products, scenes, smoothui-schema
Size
132 lines

Code

components/smoothui/features-3/index.tsx

"use client";

import { cn } from "@/lib/utils";
import { getImageKitUrl } from "@/lib/smoothui-data";
import { motion, useReducedMotion } from "motion/react";

const SPRING = {
  bounce: 0.1,
  duration: 0.25,
  type: "spring" as const,
};

const features = [
  {
    description:
      "Every component is designed with usability in mind. Clean interfaces that your users will love from the first interaction.",
    image: getImageKitUrl("/smoothui/troupe-people-v2/maya-solis.webp", {
      format: "auto",
      quality: 85,
      width: 800,
    }),
    imageAlt: "Generated portrait of Maya Solis",
    title: "Intuitive Design",
  },
  {
    description:
      "Optimized animations that only use transform and opacity. Hardware-accelerated rendering for butter-smooth 60fps experiences.",
    image: getImageKitUrl("/images/hero-smoothui.png", {
      format: "auto",
      quality: 85,
      width: 800,
    }),
    imageAlt: "SmoothUI component showcase",
    title: "Blazing Performance",
  },
  {
    description:
      "Full TypeScript support, comprehensive documentation, and one-command installation via the shadcn registry.",
    image: getImageKitUrl("/images/hero-example_xertaz.png", {
      format: "auto",
      quality: 85,
      width: 800,
    }),
    imageAlt: "Code example with TypeScript support",
    title: "Developer Experience",
  },
];

export function FeaturesAlternating() {
  const shouldReduceMotion = useReducedMotion();

  return (
    <section aria-labelledby="features-alternating-heading">
      <div className="py-24 md:py-32">
        <div className="mx-auto max-w-6xl px-6">
          <div className="mx-auto mb-16 max-w-2xl text-center">
            <h2
              className="text-balance font-bold text-3xl tracking-tight md:text-4xl"
              id="features-alternating-heading"
            >
              Why developers choose us
            </h2>
            <p className="mt-4 text-foreground/70 text-lg">
              Designed for developer productivity and user delight.
            </p>
          </div>
          <div className="space-y-24">
            {features.map((feature, index) => {
              const isReversed = index % 2 === 1;
              const slideDirection = isReversed ? 24 : -24;

              return (
                <div
                  className={cn(
                    "grid items-center gap-12 md:grid-cols-2",
                    isReversed && "md:[direction:rtl]"
                  )}
                  key={feature.title}
                >
                  <motion.div
                    className="md:[direction:ltr]"
                    initial={
                      shouldReduceMotion
                        ? { opacity: 1 }
                        : { opacity: 0, x: slideDirection }
                    }
                    transition={shouldReduceMotion ? { duration: 0 } : SPRING}
                    viewport={{ margin: "-100px", once: true }}
                    whileInView={
                      shouldReduceMotion ? { opacity: 1 } : { opacity: 1, x: 0 }
                    }
                  >
                    <h3 className="mb-4 font-bold text-2xl">{feature.title}</h3>
                    <p className="text-foreground/70 text-lg leading-relaxed">
                      {feature.description}
                    </p>
                  </motion.div>

                  <motion.div
                    className="md:[direction:ltr]"
                    initial={
                      shouldReduceMotion
                        ? { opacity: 1 }
                        : { opacity: 0, x: -slideDirection }
                    }
                    transition={shouldReduceMotion ? { duration: 0 } : SPRING}
                    viewport={{ margin: "-100px", once: true }}
                    whileInView={
                      shouldReduceMotion ? { opacity: 1 } : { opacity: 1, x: 0 }
                    }
                  >
                    <div className="overflow-hidden rounded-xl border shadow-md">
                      <img
                        alt={feature.imageAlt}
                        className="aspect-video h-auto w-full object-cover"
                        draggable={false}
                        src={feature.image}
                      />
                    </div>
                  </motion.div>
                </div>
              );
            })}
          </div>
        </div>
      </div>
    </section>
  );
}

export default FeaturesAlternating;

More like this

Bento Grid

Magic UI·Cards

Features 1

SmoothUI·Cards

Border Beam Button

Cult UI·Backgrounds

Cta 2

SmoothUI·Page sections

Neumorph Button

Cult UI·Text effects

Hero Video Dialog

Magic UI·Inputs & forms

Intro Disclosure

Cult UI·Data display

Border Trail

Motion Primitives·Cursor & effects

Logo Cloud 4

SmoothUI·Media & 3D

Faq 1

SmoothUI·Data display

Side Panel

Cult UI·Other

Safari

Magic UI·Media & 3D

Safari Browser

Eldora UI·Media & 3D

Carousel

HextaUI·Media & 3D

Cool Mode

Magic UI·Buttons