paytonshaltis / freighter

🚂 Freighter is a highly-customizable HTML carousel library featuring a number of dynamic properties affecting carousel items and transitions. Most prominently, it gives complete control over the resizing method (for responsive layouts) as well as the wrapping method (for content display).
https://paytonshaltis.github.io/freighter
MIT License
1 stars 0 forks source link

Add input validation #26

Closed paytonshaltis closed 1 year ago

paytonshaltis commented 1 year ago

Closes #8.

Adds a function to validate input, including number ranges, the requirement of whole numbers, and string lengths.

Adds a function to convert some of the friendlier parameters (such as transitionDuration from 0 to 1 to avoid CSS error).