
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
scrolly-video
Advanced tools
A webcomponent built with svelte for scroll-based (or other externally controlled) playback.
A webcomponent built with svelte for scroll-based (or other externally controlled) playback.
<scrolly-video src="https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_5MB.mp4" />
</body>
):<script src="https://cdn.jsdelivr.net/npm/scrolly-video@latest/dist/scrolly-video.js"></script>
You can replace @latest
with specific version, example @1.0.0
.
Below is available a description of options
values.
npm install scrolly-video --save
<scrolly-video src="https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_5MB.mp4" />
require("scrolly-video");
or
import "scrolly-video";
Below is available a description of options
values.
npm install scrolly-video --save
:src/App.js
on header:import "scrolly-video";
App.js
template:<scrolly-video src="https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_5MB.mp4" />
npm install scrolly-video --save
:app/app.modules.ts
on header:import "scrolly-video";
<scrolly-video src="https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_5MB.mp4" />
npm install scrolly-video --save
:src/App.svelte
on header:import "scrolly-video";
<scrolly-video src="https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_5MB.mp4" />
npm install scrolly-video --save
:src/App.vue
and add webcomponent to ignoreElements of vue config:import Vue from "vue";
import "scrolly-video";
Vue.config.ignoredElements = ["scrolly-video"];
<scrolly-video src="https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_5MB.mp4" />
Any props added to this element will are passed into a standard HTML <video />
tag.
Additional parameters:
Parameter | Description | Values | Default value |
---|---|---|---|
transitionSpeed | Sets the maximum playbackRate for this video | Number | 6 |
Additionally, there are two functions provided to set the currentTime:
setCurrentTime (setTime | Number): A number between 0 and video.duration that specifies the number of seconds into the video.
setCurrentTimePercent (setPercentage | Number): A number between 0 to 1 that specifies the percentage position of the video.
<scrolly-video src="https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_5MB.mp4" />
FAQs
A component for scroll-based (or other externally controlled) playback.
The npm package scrolly-video receives a total of 309 weekly downloads. As such, scrolly-video popularity was classified as not popular.
We found that scrolly-video demonstrated a healthy version release cadence and project activity because the last version was released less than 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.