validate-style-animations
v1.0.4
Published
A small library for an easy element highlighting when validation fails.
Downloads
12
Readme
validate-style-animations
A small library for an easy element highlighting when validation fails.
Install
NPM
npm i validate-style-animations
CDN
<script src="https://unpkg.com/validate-style-animations/dist/index.min.js"></script>
Usage
validateStyle
There is a second optional parameter:
sortable
Default: true
Type: Boolean
add or remove the validation classes
import { validateStyle } from 'validate-style-animations'
const element = document.getElementById('elementId')
validateStyle(element)
//OR
validateStyle(element, true)
validateStyle(element, false)