jquery文本动画淡入效果插件reveal-it.js

所属分类:其他-动画效果

 35979  335  查看评论 (0)
分享到微信朋友圈
X
jquery文本动画淡入效果插件reveal-it.js ie兼容10

1立即在页面加载

<div class="container">
    <div class="row">
        <div class="col-xs-12">
            <p>Box 1: Reveal Immediately</p>
            <div class="box1">
                <h1>Lorem ipsum dolor sit amet, ne mel vero impetus voluptatibus</h1>
            </div>
        </div>
    </div>
</div>
jQuery(function () {
    //Box 1: reveal immediately - on page load
    //NOTE: id does refer to an element id, It is used to
    //      uniquely refer to the element to be revealed.
    var options1 = {
        id: 'box1'
    };
    $('.box1').initReveal(options1);
});

    

2,指定的延迟后:设置背景颜色。

<div class="container" style="background-color: #555;">
    <div class="row">
        <div class="col-xs-12">
            <p>Box 2: Reveals after 3000ms delay</p>
            <div class="box2">
                <h1>Lorem ipsum dolor sit amet, ne mel vero impetus voluptatibus</h1>
            </div>
        </div>
    </div>
</div>
var options2 = {
    id: 'box2'
    , delay: 3000
    , background: '#555'
};
$('.box2').initReveal(options2);

3:点击事件——如。onclick

<div class="container">
    <div class="row">
        <div class="col-xs-12">
            <p>Box 3: Reveal on click event</p>
            <div>
                <div class="box3">
                    <h1>Lorem ipsum dolor sit amet, ne mel vero impetus voluptatibus</h1>
                </div>
            </div>
 
            <button class="btn btn-primary btn-reveal">Reveal!</button>
        </div>
    </div>
</div>
var options3 = {
    id: 'box3'
    , auto: false
};
var box3 = $('.box3');
box3.initReveal(options3);
 
$('.btn-reveal').on('click', function () {
    box3.performReveal(options3);
});

4:当元素卷轴到视窗

<div class="container">
    <div class="row">
        <div class="col-xs-12">
            <p>Box 4: Reveal when element scrolls into the viewport</p>
            <div>
                <div class="box4">
                    <h1>Lorem ipsum dolor sit amet, ne mel vero impetus voluptatibus</h1>
                </div>
            </div>
        </div>
    </div>
</div>
var options4 = {
    id: 'box4'
    , auto: false
    , trigger: 'on-visible'
};
$('.box4').initReveal(options4);
相关插件-动画效果

html5 canvas粒子星空

html5 canvas鼠标跟随粒子星空动画
  动画效果
 74918  737

3D签到墙 threejs(使用元素周期表修改)

采用threejs官方demo的元素周期更改的,展示为图片,可自动更换或手动更换,目前为旋转状态;模拟推送用户可以优化随机更改图片应该会更好点。
  动画效果
 67444  651

canvas烟花效果

2018新年快乐烟花效果
  动画效果
 49537  585

jquery新婚快乐

jquery新婚快乐动画效果
  动画效果
 37795  395

讨论这个项目(0)回答他人问题或分享插件使用方法奖励jQ币 评论用户自律公约

😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
取消回复