限时优惠活动
亲爱的苦力吧用户,我们为了回馈新老用户一直以来的鼎力支持,即日起(2025-02-06至2025-03-06)凡是购买苦力吧VIP/充值K币的新老用户,都直接可获得买一送一的优惠馈赠。例如:购买一个月的VIP会员可直接获得两个月的VIP会员;充值100K币可直接获得200K币,以此类推!有任何疑问可联系在线客服,感谢各位用户对苦力吧素材的信任与厚爱,我们将一如既往的给大家上新更多优质的素材源码,祝大家开工大吉、工作顺利、心想事成。

jquery基于Clockz创建的CSS3逐帧动画特效插件

所属分类: 网页特效-动画效果    2023-09-19 02:42:10

jquery基于Clockz创建的CSS3逐帧动画特效插件 ie兼容6
 查看演示  登录后下载 温馨提示
登录会员即可享受免费下载
 我要建站

jquery基于Clockz创建的CSS3逐帧动画特效插件(共7个文件)

    • index.html

使用方法

			var phone1 = {
				name: 'phone1',
				loop: true,
				frames: [
					{ duration: 2000 },
					{ properties: { left: 768 }, duration: 800, easing: 'swing' },
					{ properties: { top: 200 }, duration: 3000, easing: 'swing' },
					{ properties: { perspective: '100px', rotateX: '180deg'}, type: 'transit', duration: 2000 },
					{ duration: 2000 },
					{ properties: { top: 10 }, duration: 3000, easing: 'swing' },
					{ properties: { perspective: '100px', rotateX: '0deg'}, type: 'transit', duration: 2000 }
				]
			};
			var phone2 = {
				name: 'phone2',
				loop: true,
				frames: [
					{ duration: 2000 },
					{ properties: { left: 410 }, duration: 800, easing: 'swing' },
					{ properties: { rotate: '+=30' }, type: 'transit', duration: 70, easing: 'swing' },
					{ properties: { rotate: '+=30' }, type: 'transit', duration: 70, easing: 'swing' },
					{ properties: { rotate: '+=30' }, type: 'transit', duration: 70, easing: 'swing' },
					{ properties: { rotate: '+=30' }, type: 'transit', duration: 70, easing: 'swing' },
					{ properties: { rotate: '+=30' }, type: 'transit', duration: 70, easing: 'swing' },
					{ properties: { rotate: '+=30' }, type: 'transit', duration: 70, easing: 'swing' },
					{ properties: { top: 600 }, duration: 2000, easing: 'swing' },
					{ duration: 1000 },
					{ properties: { top: 10 }, duration: 2000, easing: 'swing' }
				]
			};
			var phone3 = {
				name: 'phone3',
				loop: true,
				loopStart: 2,
				frames: [
					{ duration: 2000 },
					{ properties: { left: 1111 }, duration: 800, easing: 'swing' },
					{ properties: { top: 600 }, duration: 1000, easing: 'swing' },
					{ properties: { top: 10 }, duration: 1000, easing: 'swing' }
				]
			};
			var phone4 = {
				name: 'phone4',
				loop: true,
				frames: [
					{ duration: 5000 },
					{ properties: { left: 60, top: 25 }, duration: 1500, easing: 'swing' },
					{ properties: { opacity: 1 }, duration: 700, easing: 'swing' },
					{ properties: { opacity: 0 }, duration: 700, easing: 'swing' },
					{ properties: { opacity: 1 }, duration: 700, easing: 'swing' },
					{ properties: { opacity: 0 }, duration: 700, easing: 'swing' },
					{ properties: { opacity: 1 }, duration: 700, easing: 'swing' },
					{ properties: { left: -400, top: 300 }, duration: 1500, easing: 'swing' },
				]
			};
			$(function(){

				var stopped = false;
				var clockz = new Clockz();

				$('#stop').click(function(e) {
					stopped = !stopped;
					if (stopped) {
						$(this).html('Play');
						clockz.stopAll();
					}
					else {
						$(this).html('Stop');
						clockz.playAll();
					}
				});

				clockz.playHook = function(node, frame, callback) {

					var duration = frame.duration || 400;
					var properties = frame.properties || null;
					if (properties) {
						var jnode = $(node);
						if (!jnode) {
							this.error( 'playHook(): node is invalid.' );
							return;
						}
						var type = frame.type || 'jquery';
						var easing = frame.easing || 'swing';
						switch (type) {
				            case 'jquery':
				                $(node).animate(properties, duration, easing, callback);
				                break;
				            case 'transit':
				                $(node).transition($.extend({
									duration: duration,
									easing: easing,
									complete: callback
				                }, properties));
				                break;
				        }
					}
					else {
						setTimeout(callback, duration);
					}
			    };

				clockz.create('.phone1', phone1);
				clockz.create('.phone2', phone2);
				clockz.create('.phone3', phone3);
				clockz.create('.phone4', phone4);
				clockz.playAll();

			});

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

jquery鼠标悬停图片破碎特效

一款图片破碎动画特效,鼠标悬停图片上,触发图片犹如玻璃破碎效果,非常有震撼力。
  动画效果
 4130  0

CSS3鼠标悬停图片显示文本文字特效

一款团队介绍悬停动画效果,鼠标悬停于头像图片上,触发图片下坠并显示带箭头的姓名文字。
  动画效果
 698  0

jquery八种不同动画的圆形加载进度条特效代码

提供了8种不同风格的圆形加载动画,从不同的方向起点开始加载进度条。
  动画效果
 5333  0

jquery点击表单提交按钮显示加载动画特效代码

一个轻量级点击按钮加载动画插件,鼠标点击按钮触发在按钮上显示自定义加载动画及文本文字,当前不可点击。
  动画效果
 6312  0

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

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