Socket
Book a DemoInstallSign in
Socket

ani-video

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ani-video

AniVideo.js is a simple, light-weighted and easy to use JavaScript library to combine animations (gifs) and a video together to create beautiful websites.

1.0.3
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

AniVideo.Js

Javascript Plugin

AniVideo.js is a simple, light-weighted and easy to use JavaScript library to combine animations (gifs) and a video together to create beautiful websites.

Get Started

All you will need to include:

  • The JavaScript file ani-video.js
  • The css file ani-video.css

Including files:

<link rel="stylesheet" type="text/css" href="https://unpkg.com/ani-video@1.0.1/dist/ani-video.css" />

<!-- Javascript Files -->
<script type="text/javascript" src="https://unpkg.com/ani-video@1.0.1/dist/ani-video.js"></script>

Using NPM

Optionally, you can install AniVideo.js with npm

npm install ani-video

Usage

HTML Structure

Start your HTML document with the compulsory HTML DOCTYPE declaration, must start with a <! DOCTYPE> declaration. Than add a html tag and set it's 'id'.

<div id="ani-video-wrapper"></div>

Initialization

To activate the plugin all you have to set some options based on your requirements

//// create new Plugin instance
    var aniVideoInstance = new AniVideo({
        // Settings
        selector: "#ani-video-wrapper",
        src: './images/ced.fund_video.mp4',
        startingGif: './images/animation_2.gif',
        endingGif: './images/animation_3.gif',

        // Video
        loop: false,
        muted: true,

        // Appearance
        title: 'We Are Developing A Blockchain Network To Finance Your Student Loan Debt',
        buttonText:'Click play to learn',
        showOverlayAtEnd: true,
        showProgress: true,
        
    })

Keywords

javascript-plugin

FAQs

Package last updated on 29 Aug 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.