Feature
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 | Firefox | Chrome | Safari | 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
Copyright (C) 2018 Creation Studio Limited.