1.0.16 • Published 5 years ago

@dmakaridze/svd.js v1.0.16

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

svd.js

Usage

You will need to include:

  • The JavaScript file svd.js (or its minified version svd.min.js)
  • The css file svd.css

Install using bower or npm

You can install svd.js with yarn or npm if you prefer:

Terminal:

// With yarn
yarn add @dmakaridze/svd.js

// With npm
npm install @dmakaridze/svd.js

Including files:

<!--suppress ALL -->
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="node_modules/@dmakaridze/svd.js/dist/css/svd.css">

<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/popper.js/dist/popper.min.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="node_modules/gsap/src/minified/TweenMax.min.js"></script>
<script src="node_modules/svg.js/dist/svg.min.js"></script>

<script type="text/javascript" src="node_modules/@dmakaridze/svd.js/dist/js/svd.js"></script>

Required HTML structure

For interactive video story you should create a wrapper (<div id="svd"> in this case). The wrapper can not be the body element.

<div id="svd"></div>

Initialization

Initialization with Vanilla Javascript

All you need to do is call svd.js before the closing </body> tag.

svd_init({
    // options here
    story: 'story.json',
    id: 'svd',
    width: '100%',
    height: '100%',
    margin: 0,
    padding: 0,
    verticalAlign: 'center',
    start: 0,
    modalFrameId: null,
    modalTitleId: null
});

People

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago