开发者

Glow effect with background color using jQuery

开发者 https://www.devze.com 2023-03-21 00:01 出处:网络
How can 开发者_运维技巧I add a subtle \"glow\" effect to a div element that will glow all the time/permanently, right after the page load, not just when hovered?

How can 开发者_运维技巧I add a subtle "glow" effect to a div element that will glow all the time/permanently, right after the page load, not just when hovered?

Unfortunately, the client wants me to make this work in IE7+.


Have you considered using an animated gif?

Match the solution to the client.


If it should glow permanently all the time, why use Javascript/jQuery at all? This could be done purely using CSS, either using CSS3 box-shadow to simulate glow or using images.

Here's a CSS3 example

To animate bg-color, check out this post

0

精彩评论

暂无评论...
验证码 换一张
取 消