Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ax-design/pressure

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ax-design/pressure

Web component that implement tilt effect of Axiom Design System.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Pressure

Web component that implements Tilt Effect of Axiom Design System.

npm version CI Status MIT Licence

Screenshot

Installation

// with npm
npm install @ax-design/pressure

// with yarn
yarn add @ax-design/pressure

and import it:

//CommonJS
require('@ax-design/pressure').register();

//ESModule
import { register } from '@ax-design/pressure';
register();

Usage

To add a reveal effect on your web application, you need to wrap a ax-pressure component with the component you want to add tile effect. Here's an example:

<ax-pressure>
  <div class="tile">
    <img class="tile-icon" src="./images/apple.svg" alt="Icon of Apple" />
    <p class="tile-title">Apple</p>
  </div>
</ax-pressure>

Style Controlling

Pressure component uses custom properties to manage the style of the tile effect.

--pressure-tilt-depth

Type: <length>

Default: 1px

Description: The depth at which one side sinks down when the mouse presses the edge of the element.

--pressure-zoom

Type: <length>

Default: 0.8px

Description: The extent to which the entire element falls down when the mouse is pressed down the center of the element.

--pressure-perspective

Type: <length>

Default: 25px

Description: To give the element some perspective, check out this tutorial.

FAQs

Package last updated on 15 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc