怎么qml 实现滑动切屏效果震屏效果

查看: 31030|回复: 19
AE如何制作屏幕震动的效果?
在线时间 小时
AE里如何制作抖动屏幕的效果?目标物不动。比如目标物爆炸第一人称感到震动但是目标在一个位置不动的。
在线时间 小时
首先,设置两个位置关键帧,并选中这两个关键帧,选择主菜单 Windows&&/&&The Wiggler&&命令,会出来下面的窗口
1.JPG (10.98 KB, 下载次数: 194)
18:21 上传
设置摆动参数,单击 Apply 。
在线时间 小时
好教程,顶!
在线时间 小时
在线时间 小时
在问一下达人为什么我输出AVI后我的工程文件就空了呢?
在线时间 小时
什么意思?
在线时间 小时
关闭AE后,在开工程里面就什么也没有了。
在线时间 小时
没有保存吗?
在线时间 小时
按你说的我做的为什么不行的呢?
在线时间 小时
没用啊& && &我设置好了没用勒jquery实现的div窗口震动特效
代码如下: &!doctype html public -//w3c//dtd xhtml 1.0 strict//en http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd& &html xmlns=http://www.w3.org/1999/xhtml& &head& &meta http-equiv=content-type content=text/ charset=utf-8 /& &title&jquery窗口震动特效&/title& &script type=text/javascript src=http://www.codefans.net/ajaxjs/jquery-1.6.2.min.js&&/script& &script type=text/javascript& ;(function($){ var element = {}; $.fn.jshaker = function(){ element = $(this); element.css('position', 'relative'); element.find('*').each(function(i, el){ $(el).css('position', 'relative'); }); var ifunc = function(){ $.fn.jshaker.animate($(element)); }; settimeout(ifunc, 50); }; $.fn.jshaker.animate = function(el){ $.fn.jshaker.shake(el); el.find('*').each(function(i, el){ $.fn.jshaker.shake(el); }); var ifunc = function(){ $.fn.jshaker.animate(el); }; settimeout(ifunc, 50); } $.fn.jshaker.shake = function(el){ var pos = $(el).position(); if(math.random() & 0.5){ $(el).css('top', pos['top'] + math.random() * 20 & 10 ? (math.random() * 20 * (-1)) : math.random() * 20); } else { $(el).css('left', pos['left'] + math.random() * 20 & 10 ? (math.random() * 20 * (-1)) : math.random() * 20); } } })(jquery); &/script& &script type=text/javascript& $(document).ready(function(){ $('.block').click(function(){ $(this).jshaker(); }); }); &/script& &style type=text/css& body{font-family: lucida grande, arial, helvetica, sans-color: #666666;font-size: 12background: #} a{color: #0a8} a: hover{text-decoration:color: #8fcb2f;} h1{font-weight:color: #0a8margin: 0;padding: 0;} body{margin: 20padding: 20} strong{color: #000000;} .vspacer{height: 20} pre.code{padding: 7background: #777777;color: #f0f0f0;width: 400overflow:} #content-area{border: 3px solid #background: #f0f0f0;padding: 10width: 500} p.script-link{clear:padding: 10px 0;border-top: 1px dotted #} #content .block {float:border: 1px solid #background: #f0f0f0;padding: 10margin: 10width: 300} &/style& &/head& &body& &div id=page& &h1&jquery窗 口 震 动 特 效&/h1& &div id=content& &div class=block& &p&点击本框内,可实现震动&/p& &ul& &li&item 1&/li& &li&item 2&/li& &li& item 3 &ul& &li&sub item 1&/li& &li&sub item 2&/li& &li&sub item 3&/li& &li&sub item 4&/li& &li&sub item 5&/li& &/ul& &/li& &li&item 4&/li& &li&item 5&/li& &/ul& &/div& &div class=block& &form action=#& &p&&label for=inp1&text field 1:&/label&&input type=text name=inp1 id=inp1 value= /&&/p& &p&&label for=inp2&text field 2:&/label&&input type=text name=inp2 id=inp2 value= /&&/p& &p&&button type=submit&submit&/button&&/p& &/form& &/div& &/div& &p class=script-link& &/p& &/div& &/body& &/html& 更多热点信息信息请查看:  一种把人吓一跳的感觉。实现方法是,把下面的JavaScript代码加入到& body&与& /body&之间:& script language="JavaScript"&function surfto(form) {var myindex=form.select1.selectedIndexif (form.select1.options[myindex].value != null) {parent.main.location.href=form.select1.options[myindex].} }& /script& //这段JS代码意为当前页面的浏览器震动//& script language="JavaScript1.2"&function shake(n) {if (window.top.moveBy) {for (i = 10; i & 0; i--) {for (j = j & 0; j--) {window.top.moveBy(0,i);window.top.moveBy(i,0);window.top.moveBy(0,-i);window.top.moveBy(-i,0);} } }alert("呀~~震动啦!没~~吓坏吧?^_*"); //这里设定震动后弹出的嬉戏性文字(据需随意)//}& /script&& script language="JavaScript"&
??????????Javascript(8)
&mce:script language='javascript'&&!--
window.resizeTo(400,400);
var loop=0;
var dir=1;
timer=setInterval(function()
window.moveTo(500,180);
if(loop&100)
clearInterval(timer);
dir=Math.random()*10&5?1:-1;
offX=Math.random()*20*
offY=Math.random()*20*dir*-1;
window.moveBy(offX,offY);
// --&&/mce:script&
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:48204次
积分:1066
积分:1066
排名:千里之外
原创:59篇
(7)(8)(7)(5)(26)(7)

我要回帖

更多关于 ae屏幕震动效果 的文章

 

随机推荐