CSS - Cascading Style Sheets

Hot Tea / Coffee with Animated Smoke Effect – jQuery & CSS

This effect has been created with some cool jQuery animation effect. For Smoke effect I have used a png transparent image. I have already updated this for IE too. As we already know transparency of png creates some bad side-effects on IE (png transparency bugs in IE). You can check the demo code and see how it's done. Basically, the Javascript function creates some div with smoke background in random positions.  so, the effect looks more random even though it's totally deterministic. Each smoke moves in the Y axis with a linear function and fade with a cosine function. Pretty simple…
Continue Reading »
CSS - Cascading Style Sheets

Cool Animated Fire Effects with CSS3 and jQuery

This effect has been created with some jQuery for setting different CSS3 text-shadow's in a div. You can check the demo code to see how it's done. Basically, the Javascript function creates 3 text-shadows (white, yellow and red) with coprime "cycle durations" so the effect looks more random even though it's totally deterministic. Each shadow moves in the Y axis with a linear function and in the X axis with a cosine function. Pretty simple, but effective. The CSS #onfire{ height:auto; padding-top:3em; font-size: 42px; font-weight: bold; text-align: center; color:brown; } The jQuery <script type="text/javascript"> var step = 1; function nextShadow(){…
Continue Reading »
CSS - Cascading Style Sheets

Animated Notification bubble icon with CSS3 keyframe animation

The other day, while working on a web project, I had to emphasize somehow a dynamic notification bubble. Basically, every time the notification value changes, a visual effect was needed in order to get user's attention. So I made that using CSS3 keyframe animation. The HTML For this example, we'll borrow the markup structure and look from my CSS3 dropdown menu. <ul> <li><a href="">Dashboard</a></li> <li><a href="">Friends</a></li> <li> <a href="">Message <span>9</span> </a> </li> <li><a href="">Games</a></li> <li><a href="">Settings</a></li> </ul> The focus will be on the <span>, which is the notification bubble that will be animated. The CSS The .animating class represents an CSS3 animation that uses…
Continue Reading »