jquery一款css3制作的图片动画特效代码

所属分类: 网页特效-动画效果    2023-06-17 05:31:43

jquery一款css3制作的图片动画特效代码 ie兼容6
反馈问题  查看演示  登录后下载 温馨提示
登录会员即可享受免费下载
 我要建站

jquery一款css3制作的图片动画特效代码(共6个文件)

    • demo.html

使用方法

HTML代码:
            <div data-code=true>
                <div class="test">
                    <div class="test one"></div>
                    <div class="test two"></div>
                    <div class="test three"></div>

                    <div class="test one"></div>
                    <div class="test two"></div>
                    <div class="test three"></div>

                    <div class="test one"></div>
                    <div class="test two"></div>
                    <div class="test three"></div>

                    <div class="test one"></div>
                    <div class="test two"></div>
                    <div class="test three"></div>
                </div>
            </div>

jquery脚本代码:
            $.fn.test = function() {

            var cH = $(window).height();
            var cW = $(window).width();

            return this.each(function() {
            var el = $(this);

            var w = 10 + (5 * Math.floor((Math.random() * 15)));
            var h = 10 + (5 * Math.floor((Math.random() * 15)));
            var t = 10 + (Math.floor(Math.random() * (cH-h)));
            var l = 10 + (Math.floor(Math.random() * (cW-w)));
            var r = Math.floor(Math.random() * 360);
            var duration = 1000 + Math.floor((Math.random() * 5000));

            //here is the CSSAnimate :-)
            el.CSSAnimate({
            y: t,
            x: l,
            width: w,
            height: h,
            skew: r/3,
            "border-radius": Math.floor(Math.random() * el.width()),
            "rotate": r,
            "transform-origin": Math.floor(Math.random() * 100)+"% "+Math.floor(Math.random() * 100)+"%",
            "background-color": "rgba("+Math.floor(Math.random() * 255)+","+Math.floor(Math.random() * 255)+","+Math.floor(Math.random() * 255)+","+(.6+Math.random()*.4)+")"
            }, duration, 0, "linear", function() {
            el.test();
            })
            })
            };


            $(".test").test();

站长提示:
1. 平台上所有素材资源,需注册登录会员方能正常下载。
2. 会员用户积极反馈网站、素材资源BUG或错误问题,每次奖励20K币
3. PHP源码类素材,如需协助安装调试,或你有二次开发需求,可联系苦力吧客服。
4. 付费素材资源,需充值后方能下载,如有任何疑问可直接联系苦力吧客服
相关资源 / 动画效果

jquery基于Ripples.js创建的逼真的水纹波动特效

Ripples.js是一个轻量级插件,可创建唯美的波纹效果。当用户悬停或点击图片时,会生成逼真的水波动画。
  动画效果
 279  

JavaScript实现的像素小方块图片背景动画特效代码

JavaScript代码创建的一个动态的像素背景动画。该代码生成一个随着时间推移而移动和衰减的正方形网格。可通过鼠标点击、生成新的方块或重置现有方块进行交互。
  动画效果
 163  

jquery可自定义的打字机效果回旋动画特效

一款可配置的打字机动画效果,非常适合新闻播报器、推荐转盘、报价旋转器等。
  动画效果
 194  

led在线时钟文字展示特效脚本

一款在线时钟动画特效,模拟LED屏幕效果,动态的展示当前时间。
  动画效果
 230  

评论数(0) 回复有机会获得K币 用户协议

^_^ 还没有人评论,快来抢个沙发!
😀
  • 😀
  • 😊
  • 😂
  • 😍
  • 😑
  • 😷
  • 😵
  • 😛
  • 😣
  • 😱
  • 😋
  • 😎
  • 😵
  • 😕
  • 😶
  • 😚
  • 😜
  • 😭
发表评论