[英]Seeking a simultaneous fade and blur effect using JQuery or Javascript
Can anyone think of a way to simulate the fade/blur flash effect used in the following website: 任何人都可以想到一种模拟以下网站中使用的淡入/模糊闪光效果的方法:
http://www.frenchlaundry.com/ (image fades and blurs on hover, while text fades in simultaneously) http://www.frenchlaundry.com/ (悬停时图像淡入淡出,同时文本淡入淡出)
using JQuery? 使用JQuery? I am looking to have this whole chain of effects happen on load or when the DOM is ready (instead of on hover).
我希望在加载或DOM准备好(而不是悬停)时发生这整个效果链。 And by blur, I mean a gaussian-type of blur - possibly using Pixastic (?)
而模糊,我的意思是高斯型的模糊 - 可能使用Pixastic(?)
I am really new at this, so please be gentle :) 我真的很新,所以请温柔:)
Thank you. 谢谢。
You should use animate() method of Jquery to achieve what you want. 您应该使用Jquery的animate()方法来实现您想要的。
Check out the link below...It has numerous examples: 看看下面的链接......它有很多例子:
http://api.jquery.com/animate/ http://api.jquery.com/animate/
HTH HTH
Since Jquery effects are just implementations of the animate() method, which uses CSS properties and then makes a smooth transition between them, there's no easy way to implement a Gaussian blur. 由于Jquery效果只是animate()方法的实现,它使用CSS属性然后在它们之间进行平滑过渡,因此没有简单的方法来实现高斯模糊。
You could use Pixastic and then fade in some hidden text over the blurred image, why not. 您可以使用Pixastic然后在模糊图像上淡入一些隐藏文本,为什么不呢。
This library includes the ability to blur images: http://www.pixastic.com/ 该库包含模糊图像的功能: http : //www.pixastic.com/
As for animating the blur effect, as Raja said you can look at the animate() method of Jquery, or simply use the setTimeout function. 至于设置模糊效果的动画,正如Raja所说,您可以查看Jquery的animate()方法,或者只使用setTimeout函数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.