1
私のウェブサイトにvegas.jsプラグイン(http://vegas.jaysalvat.com/documentation) を使用しています。私はそれらの画像でいくつかのテキストを表示したい。どのように画像を使っていくつかのアニメーションテキストを追加することができます。
体にvegas.jsを初期化します。vegas.jsプラグインでテキストアニメーションを追加するには
<script>
$("#fullScreenSlide").vegas({
preload : true,/*load then show image*/
autoplay: true,
loop: true,
shuffle: false,
cover: true,
transition: 'fade', /*animation-effect*/
transitionDuration: 5000, /*animation duration*/
delay: 12000, /*slide duration*/
slides: [
{ src: "images/1.jpg" },
{ src: "images/2.jpg" },
{ src: "images/3.jpg" },
{ src: "images/4.jpg" }
],
overlay: 'vegas/overlays/01.png' /*overlay background*/
});
</script>