Viewing Category » Tutorials

Circulate Animation with jQuery and CSS From CSS-Tricks.com

I had the occasion come up recently where i needed to animate something in a circle. It never occurred to me until then that there wasn’t an obvious solution to this already with jQuery. So I figured out a way, and made a plugin out of it.

This unicorn can fly friggin backwards with this plugin.

The Empowering Concepts

This is a jQuery plugin, so obviously it relies upon the jQuery library. Specifically, jQuery 1.4 or later, because we are using the .animate() functions new ability to have per property easing. This means we can animate the “top” value with one easing function while animating the “left” value with a different easing function. All this talk of easing… I should say that not only does this require jQuery 1.4+, it also requires the easing plugin.

Here is the idea:

So if we do that four different times, flipping around the easing functions and adding/subtracting as necessary, we can get a circle. And not just a circle really, but any ellipse defined by height and width.

Features

You can declare speed, height, and width. Those are pretty obvious / standard / expected parameters for a plugin like this. There are three others though: Read the rest of this entry »

Other Resources,Tutorials     20 May 2010 1 comment

Animated Effects on Buttons with Pure CSS3

Here is an another one CSS3 implemented method of using various buttons with animated effects. We have seen lots of cool buttons and various animated effects which made of either images or javascript. But here with CSS3 we have come up with new kind of implementing buttons with some effects. Below we have explained briefly, also we have given a snapshot.

See the DEMO here.

Social Icons

Now let’s go through the code first.

Common CSS

.common{
-moz-border-radius:5px;
-webkit-border-radius:5px;
-moz-box-shadow:1px 2px 4px #000;
-webkit-box-shadow:1px 2px 4px #000;
font-size:13px;
width:135px;
height:25px;
overflow:hidden;
color:#FFFFFF;
cursor:pointer;
padding:8px 0;
}
.textShadow{
text-shadow:2px 3px 1px rgba(0, 0, 0, 0.5);
font-size:20px;
font-weight:bold;
font-family:helvetica,arial;
text-align:center;
height:30px;
}

Bottom Up animation:

HTML

<div id="blue" class='common' >
<div id='innerUp' >
<div id="upper" class=textShadow' >Button</div >
<div id="lower" class='textShadow' >Button</div >
</div >
</div >

CSS Read the rest of this entry »

Implementing Social Icons with Pure CSS3

Here I came up with some social icons made of pure css3 without any javascript. I have used the property of radius, gradient, to bring more beautiful and with some glow effect to those social icons.

Below I have attached the snapshot, to view the original output please visit DEMO.

Social Icons

Now let’s go through the code.

Common CSS

.common{
text-shadow:0 -2px 0 rgba(0, 0, 0, 0.5);
-moz-border-radius:5px;
-webkit-border-radius:5px;
height:32px;
width:32px;
text-align:center;
-moz-box-shadow:2px 2px 4px #ABABAB;
-webkit-box-shadow:2px 2px 4px #ABABAB;
cursor:pointer;
}

Linkedin:

HTML

 <div id='linkedin' class='common' >
    <span>in</span>
  </div>

CSS Read the rest of this entry »

 Page 5 of 11  « First  ... « 3  4  5  6  7 » ...  Last » 
Luvo designed by Internet Marketing In conjunction with Template Wordpress , R4 DS , Best SUV.