jQueryRotate大转盘跑马灯

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

 35172  416  查看评论 (13)
分享到微信朋友圈
X
jQueryRotate大转盘跑马灯 ie兼容6

jquery圆盘抽奖特效 使用JqueryRotate.2.2.js 设置及说明如下:

turnplate = {
    turnplateBox: $('#turnplate'),
    turnplateBtn: $('#platebtn'),
    lightDom: $('#turnplatewrapper'),
    freshLotteryUrl: '',
    msgBox: $('#msg'),
    lotteryUrl: '',
    height: '592',
    //帧高度	lightSwitch : 0, //闪灯切换开关. 0 和 1间切换	minResistance : 5, //基本阻力	Cx : 0.01, //阻力系数 阻力公式:  totalResistance = minResistance + curSpeed * Cx;	
    accSpeed: 15,
    //加速度	accFrameLen : 40, //加速度持续帧数	maxSpeed : 250, //最大速度 
    minSpeed: 20,
    //最小速度 
    frameLen: 10,
    //帧总数	totalFrame : 0, //累计帧数,每切换一帧次数加1	curFrame : 0, //当前帧	curSpeed : 20, //上帧的速度	lotteryTime : 0, //抽奖次数	lotteryIndex : 6, //奖品index	errorIndex : 6, //异常时的奖品指针	initBoxEle : $('#turnplate #init'),	progressEle : $('#turnplate #init span'),	initProgressContent : '~~~^_^~~~', //初始化进度条的内容	initFreshInterval : 500, //进度条刷新间隔	virtualDistance : 10000, //虚拟路程,固定值,速度越快,切换到下帧的时间越快: 切换到下帧的时间 = virtualDistance/curSpeed	isStop : false, //抽奖锁,为true时,才允许下一轮抽奖	timer2 : undefined, //计时器	initTime : undefined,	showMsgTime : 2000, //消息显示时间	lotteryChannel: '',


相关插件-动画效果,游戏

弹框消失效果

弹框消失的各种效果,应该会有你需要的。
  动画效果
 24755  318
  动画效果
 60837  613

简单的jQuery开关灯特效

jQuery开关灯特效,眼见跟随鼠标位置移动
  动画效果
 19218  294

css3实现鲨鱼游动(酷)

css3实现鲨鱼游动,效果非常酷哦。
  动画效果
 37464  414

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

    丫头 0
    2017/8/19 10:54:26

    怎么用ajax获取后台数据判断啊?而且还要三个中奖不中奖不同的弹窗!

    回复
    ?? 0
    2016/6/15 21:06:03
    里面字段可以换么 回复
    孟家小狐狸 0
    2016/1/19 9:01:17
    现在正好需要这个功能的代码,谢谢! 回复
    ┵ じo?★ 0
    2015/12/10 11:12:42

    赞,兼容性一级棒

    回复
    军军 0
    2015/11/27 11:11:37

    始终 转到 “攒人品”

         ・ Until 0
        2015/12/3 16:12:38

        概率可以自己调

        谌文琦0
        2015/12/17 17:12:28

        在哪里调概率?我发现现在是写死了的啊

        孟家小狐狸0
        2016/1/25 13:01:01

        在哪里能调概率啊?始终只能转到一个位置上,这是为什么?

        西瓜0
        2016/1/25 14:01:04

        144,145行

        lotteryIndex : 7, //奖品index

        errorIndex : 7, //异常时的奖品指针

        隙地。0
        2016/11/18 10:11:13
        如何控制其中的一项不可中,其它的随机。
        ?月如歌0
        2017/7/14 17:00:59
        //获取奖品
        lottery : function() {
            this.lotteryIndex = undefined;
            this.lotteryTime--;
            this.freshLotteryTime();
            this.totalFrame = 0;
            this.curSpeed = this.minSpeed;
            this.turnAround();
            this.lotteryIndex = typeof this.lotteryType[2] !== 'undefined' ? this.lotteryType[2] ;             
            this.errorIndex;
            this.lotteryChannel = typeof this.channelList[1] !== 'undefined' ? this.channelList[1] : '';
        },

        1、找到对象 lotteryType 更换你需要的奖品

        2、在上面这个函数 自己写概率的方法。this.lotteryIndex = 对应你的奖品对象的ID

        丫头0
        2017/8/19 10:53:12

        您好,请问您概率怎么写的?求代码

        liangjian0
        2017/11/28 19:33:58

        同求

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