npm.io
0.8.9 • Published 4 years ago

@pluginjs/feature

Licence
GPL-3.0
Version
0.8.9
Deps
0
Size
31 kB
Vulns
0
Weekly
0
Stars
17

Feature

npm package

feature is a utility JavaScript library for special helper.

Introduction

Installation

Yarn
yarn add @pluginjs/feature
NPM
npm i @pluginjs/feature

Getting Started

CDN:

Development:

<script src="https://unpkg.com/@pluginjs/feature/dist/feature.js"></script>

Production:

<script src="https://unpkg.com/@pluginjs/feature/dist/feature.min.js"></script>

API

prefixedProperty

Parameters

| Name | Type | Description | |||-| | property | String | CSS property |

Returns

| Name | Type | Description | |||-| | prefixResult | String | |

transitionProperty

Returns

| Name | Type | Description | |||-| | prefixResult | String | |

transformProperty

Returns

| Name | Type | Description | |||-| | prefixResult | String | |

animationProperty

Returns

| Name | Type | Description | |||-| | prefixResult | String | |

transform3D

Returns

| Name | Type | Description | |||-| | perspectiveTest | Boolean | |

transform

Returns

| Name | Type | Description | |||-| | transformOriginTest | Boolean | |

transition

Returns

| Name | Type | Description | |||-| | transitionTest | Boolean | |

sticky

Returns

| Name | Type | Description | |||-| | canSticky | Boolean | |

svg

Returns

| Name | Type | Description | |||-| | isSupportedSVG | Boolean | |

touch

Returns

| Name | Type | Description | |||-| | isSupportedTouchEvent | Boolean | |

pointer

Returns

| Name | Type | Description | |||-| | isSupportedPointerEvent | Boolean | |

pointerEvent

Parameters

| Name | Type | Description | |||-| | pointerEvent | String | event name |

Returns

| Name | Type | Description | |||-| | isSupportedPointerEvent | Boolean | |

Browser support

Tested on all major browsers.

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Opera
Opera
IE11, Edge last 2 versions last 2 versions last 2 versions last 2 versions

License

@pluginjs/feature is Licensed under the GPL-v3 license.

If you want to use @pluginjs/feature project to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary.

For purchase an Commercial License, contact us purchase@thecreation.co.

Copyright (C) 2022 Creation Studio Limited.