2

Popcorn.js を使用して、ビデオの字幕をフェードインおよびフェードアウトする方法を探しています。

今のところ、字幕をインラインにするか、表示しないかのハードカットのようです。

          start: function( event, options ){
    options.innerContainer.style.display = "inline";
    options.showSubtitle( options, options.text );
  },

  end: function( event, options ) {
    options.innerContainer.style.display = "none";
    options.innerContainer.innerHTML = "";
  },

どうすればこれを管理できますか?

ありがとうございました!

4

1 に答える 1

0

fadeIn() および fadeOut jquery メソッドを使用できます。字幕をdivに入れて完了です。

// Start
$('#mysubtitleDIV').fadeIn('slow');

// End
$('#imagediv').fadeOut('slow');
于 2013-05-03T15:54:29.717 に答える