
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
GScroll is a lightweight javascript tool to trigger a function when you scroll to a DOM.
$ npm install g-scroll --save
https://cdn.rawgit.com/GA-MO/g-scroll/3dede7c2/lib/g-scroll.js
You can download the source as well. :)
selector: '.element', // Class name for trigger
offset: 10, // Offset point for trigger
delay: 0.5, // Time delay before call action
action: function(selector) {
// this function will trigger when DOM in viewpoit
// (selector) is current DOM in viewpoit
// can use (selector) make a great thing with your favorite lib.
}
// Set up properties
var dataScroll = [
{
selector: '.element1',
offset: 10,
delay: 0.5,
action: function(selector) {
TweenMax.from(selector, 0.3, { y:100, opacity: 0 });
}
},
{
selector: '.element2',
offset: 10,
delay: 0.5,
action: function(selector) {
alert('Trigger me');
$(selector).addClass('animated');
}
}
];
// Use
GScroll(dataScroll);
FAQs
GScroll is a lightweight javascript tool to trigger a function when you scroll to a DOM.
The npm package g-scroll receives a total of 2 weekly downloads. As such, g-scroll popularity was classified as not popular.
We found that g-scroll 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.