Installations
npm install svelte-c-reveal
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
12.18.3
NPM Version
6.14.8
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
Svelte (89.78%)
JavaScript (10.22%)
Developer
andrusenn
Download Statistics
Total Downloads
765
Last Day
1
Last Week
1
Last Month
1
Last Year
89
GitHub Statistics
4 Stars
8 Commits
2 Watching
7 Branches
1 Contributors
Bundle Size
7.84 kB
Minified
2.71 kB
Minified + Gzipped
Package Meta Information
Latest Version
2.0.1
Package Id
svelte-c-reveal@2.0.1
Unpacked Size
41.71 kB
Size
6.56 kB
File Count
7
NPM Version
6.14.8
Node Version
12.18.3
Total Downloads
Cumulative downloads
Total Downloads
765
Last day
0%
1
Compared to previous day
Last week
0%
1
Compared to previous week
Last month
-50%
1
Compared to previous month
Last year
-11%
89
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
4
Reveal
Simple Svelte (<3) component for reveal on scroll
Usage
1<script> 2 import Reveal from "svelte-c-reveal"; 3</script> 4 5<Reveal> Content to be revealed </Reveal> 6 7<Reveal trigger="0.1" reveal="fadeInUp"> 8 Trigger when 10% is in viewport 9</Reveal> 10 11<Reveal trigger="0.5" reveal="fadeInUp"> 12 Trigger in center of viweport (50%) 13</Reveal>
Reveal and Hide
1<script> 2 import Reveal from "svelte-c-reveal"; 3</script> 4 5<Reveal trigger="0.5" reveal="fadeInUp" hide="fadeOutDown"> 6 <h1>My revealed content</h1> 7 <p>Hello I'm here!</p> 8</Reveal>
Props
Name | Value | Desc |
---|---|---|
reveal | String | Reveal effect |
hide | String | Reveal out (hide) effect |
trigger | Float | (0.0 to 1.0) When the reveal will trigger -> (viewport height * trigger) |
duration | Css value | (number) Duration of the transition in seconds without "s" |
delay | Css value | (number) Time delayed in seconds without "s" |
Effects availables
Name |
---|
fadeIn |
fadeOut |
fadeInUp [default] |
fadeOutUp |
fadeInDown |
fadeOutDown |
fadeInRotateX |
fadeOutRotateX |
fadeInRotateY |
fadeOutRotateY |
fadeInLeft |
fadeOutLeft |
fadeInRight |
fadeOutRight |
Custom effects
1<script> 2 import Reveal from "svelte-c-reveal"; 3</script> 4<style> 5 .myfx { 6 animation-name: myanimation; 7 } 8 @keyframes myanimation { 9 0% { 10 opacity: 0; 11 transform: rotate(90deg) scale(0); 12 } 13 100% { 14 opacity: 1; 15 transform: rotate(0deg) scale(1); 16 } 17 } 18</style> 19 20<Reveal trigger="0.5" reveal="myfx"> The center of viweport </Reveal>
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
4 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-wv8q-r932-8hc7
- Warn: Project is vulnerable to: GHSA-8266-84wp-wv5c
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/8 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.5
/10
Last Scanned on 2024-12-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More