
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@sky-foundry/gridsome-scroll-reveal
Advanced tools
A Gridsome Vue directive to wrap @jlmake's excellent ScrollReveal library.
A Gridsome Vue directive to wrap @jlmakes' excellent ScrollReveal library.
This is forked from the original vue-scroll-reveal library by tserkov with the added support for SSR
The directive exposes reset
, nodesktop
, and nomobile
as modifiers (ie. v-scroll-reveal.reset.nomobile
).
All other options can be passed to Vue.use
or to individual elements as a value (ie. v-scroll-reveal={ delay: 250 }
).
# npm
npm install --save gridsome-scroll-reveal
# yarn
yarn add gridsome-scroll-reveal
Remember! Any of the ScrollReveal options can be used!
// In main.js
import VueScrollReveal from 'gridsome-scroll-reveal';
// Using ScrollReveal's default configuration
Vue.use(VueScrollReveal);
// OR specifying custom default options for all uses of the directive
Vue.use(VueScrollReveal, {
class: 'v-scroll-reveal', // A CSS class applied to elements with the v-scroll-reveal directive; useful for animation overrides.
duration: 800,
scale: 1,
distance: '10px',
mobile: false
});
<!-- In a component -->
<template>
<main>
<section>
<h1>Scroll down!</h1>
</section>
<!-- This section will reveal itself each time it's scrolled into view -->
<section v-scroll-reveal.reset>
<h1>Tada!</h1>
</section>
<!-- Element-specific configuration options can be passed like this -->
<section v-scroll-reveal.reset="{ delay: 250 }">
<h1>Slightly late tada!</h1>
</section>
</main>
</template>
<style>
section {
height: 100vh;
}
</style>
As of 1.0.4, the isSupported()
and sync()
methods are exposed via Vue.$sr
or this.$sr
.
As of 1.0.7, the reveal(target, config, interval, sync)
is exposed via Vue.$sr
or this.$sr
, though using the directive
is preferred in order to keep with Vue principles.
While the code within this component is MIT-licensed, ScrollReveal is GPL3-licensed, and requires the purchase of a Commercial License if you want to use it in a closed-source project.
For an explanation of why this component is licensed differently, see #15.
FAQs
A Gridsome Vue directive to wrap @jlmake's excellent ScrollReveal library.
The npm package @sky-foundry/gridsome-scroll-reveal receives a total of 2 weekly downloads. As such, @sky-foundry/gridsome-scroll-reveal popularity was classified as not popular.
We found that @sky-foundry/gridsome-scroll-reveal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.