Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
ainojs-finger
Advanced tools
Swipe/flick physics for touch devices. Usage:
var finger = Finger(element, options)
The element must be a container that contains another slidecontainer. Example markup:
<div class="container">
<div class="slides">
<div class="slide"></div>
<div class="slide"></div>
</div>
</div>
All CSS must be added manually. Finger implemenets the ainojs-events interface. Example:
// callback for each change:
finger.on('change', function(e) {
console.log(e.value) // index value from 0-[length]
console.log(e.position) // position value
this.inner.style.left = e.position + 'px'
})
// callback for animation complete:
finger.on('complete', function(e) {
console.log(e.index) // index value from 0-[length]
})
As per 1.2, Finger does not add any requestframe, so you can control it yourself for performance optimizations.
The run
method calculates the animation and returns a boolean. if the boolean is true, then you can call the run method again in your animation loop. Example:
(function loop() {
finger.run() && window.requestAnimationFrame(loop)
})
Options:
Events:
FAQs
Swipe/flick physics for touch devices
The npm package ainojs-finger receives a total of 5 weekly downloads. As such, ainojs-finger popularity was classified as not popular.
We found that ainojs-finger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.