@gfazioli/mantine-parallax
TypeScript icon, indicating that this package has built-in type declarations

2.4.3 • Public • Published

Mantine Parallax Component


Latest Stable Version NPM Downloads NPM Downloads License

Overview

This component is created on top of the Mantine library.

Mantine UI Library

Despite the Parallax component allowing you to create the famous Apple TV Card effect, you can use this component to manipulate the perspective and rotation of an element. It is also possible to act on the skew of the element and disable the parallax effect when hovering with the mouse.

Mantine Extensions Demo and Documentation Mantine Extensions HUB

You can find more components on the Mantine Extensions Hub library.

Installation

npm install @gfazioli/mantine-parallax

or

yarn add @gfazioli/mantine-parallax

After installation import package styles at the root of your application:

import '@gfazioli/mantine-parallax/styles.css';

Usage

import { Parallax } from '@gfazioli/mantine-parallax';

function Demo() {

  return (
    <Parallax w={560} h={300}>
        <Title>Parallax</Title>
        <Text>
          Amazing contentParallax effect component. Hover to see the effect.
        </Text>
    </Parallax>
  );
}

Star History Chart

/@gfazioli/mantine-parallax/

    Package Sidebar

    Install

    npm i @gfazioli/mantine-parallax

    Weekly Downloads

    13

    Version

    2.4.3

    License

    MIT

    Unpacked Size

    103 kB

    Total Files

    22

    Last publish

    Collaborators

    • gfazioli