Giter Site home page Giter Site logo

unc-react-audio-captions's Introduction

Install

Install it with npm (npm install unc-react-audio-captions --save). Here's a simple example:

import React from 'react';
import { render } from 'react-dom';
import { AudioCaptions, Caption } from 'unc-react-audio-captions';

import 'animate.css/animate.min.css';

render(
  <AudioCaptions src="audio.mp3" controls autoPlay>
    <Caption start="2">
      Caption starting in second 2
      <div>
        <Caption start="4">
          Embedded Caption
        </Caption>
      </div>
    </Caption>

    <Caption start="3" animation="rotateIn">
      <h4>Caption with diferent animation</h4>
    </Caption>

    <Caption start="4" noDisplay>
      Caption with display:none
    </Caption>

    <Caption start="5" end="6">
      Caption that ends in the second 6
    </Caption>
  </AudioCaptions>,
  document.getElementById('app')
);

Documentation

Documentation and demo can be found here: http://jpbaena13.github.io/unc-react-audio-captions/

unc-react-audio-captions's People

Watchers

James Cloos avatar Juan Pablo Baena avatar

unc-react-audio-captions's Issues

All captions displaying for 1/2 a second when the page loads

Hi! I'm trying to use this to display 2 lines of captions at a time on a website and it's working great except that when the page first loads you can see all the text.

You can also see all the text when you reload the page.

Screen Shot 2022-03-01 at 3 33 19 PM

That should only show the first 2 lines to start

Do you know how I could fix this to only show the first 2 captions on load and reload?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.