10 of a coolest CSS3 and CSS effects

We all know it and we all commend it, and of procedure by now we roughly already know we am transparent about CSS and CSS3.

Actually, we should roughly take a inducement to interpretation CSS3 before going any offer for speeding adult a bucket times for all of your favorite sites. They, if they know what they are doing, are some-more than coming determining CSS3 in place of a ton of images to lift user bucket times, that is seemly awesome.

It is a seemly pretended fact by now that we simply do not need images to do all a things we used to need them for. With CSS3 gradients, transitions, and all a effects, it has undoubtedly seemed to have taken a lot of a weight off a shoulders of a websites, given let’s be honest—images were unequivocally weighing them down.


Don’t be mistaken though, CSS3 and CSS can’t do all but, ironically enough, we doubt many of us are courteous of a prerequisites or what pushes a undoubtedly edges of a possibilities.

Well, now we are here to find that out. So let’s dive right in to what unequivocally will be an lively and fascinating discuss of find for all of us that are fans of CSS3 and CSS.

Note: we am doing all of these with a surmise of a user being on Google chrome, so greatfully for a commend of all that is holy before indeed implementing these in your site use a suitable prefixes for other browsers. Do not register and brew from here and tour all will work perfectly, given it may—but it cunning not.


Text-based effects


They contend Anaglyphs, even when finished in CSS3, can be displayed in 3D if we have some snazzy goggles during your house. That though, we am not certain of, nonetheless what we do know is that it can feeling seemly eager for certain themes for several projects (such as a video diversion retro theme, and similar).

This outcome is sum by offsetting twin of a red youthful and blue colors (rgb). To start things off for this outcome we need twin of a same words, and we need them both to be means to be targeted in CSS, so that we can work a use and shade hex on them. In this box though, instead of adding low HTML into a member that we are determining for these words, we can entirely use a “:after” pseudo problem to further a second word. So to do that we will use this example: think we are determining an H1 to arrangement a initial word, such as:


We will following do:

h1:after {
content: “Anaglyph”;

This will give us that good repetition, and will display: “Anaglyph Anaglyph” on a page. So, now let’s start to sense this adult so that we can toss on some of that imagination 3D beauty.

h1 {
display: inline;
position: relative;
letter-spacing: -5px; /* This will lift it together giving us a good 3D vibe */
color: rgba(0,0,255,0.5); /* This will give us a blue during 50% opacity */
h1:after {
content: “Anaglyph”;
position: absolute;
left: 8px; top: 6px; /* These are aligning it to be where we’d like family to a final word */
color: rgba (255,0,0,0.5); /* This gives us a red during 50% opacity */

Using RGBA here is undoubtedly infamous given it allows an alpha clarity to be set so that a overlaid palliate will not totally retard a palliate underneath it, and gives us a good transparency. The palliate in a after pseudo member is following unequivocally positioned to be rather comparable from a underlying palliate as we could see, and that is undoubtedly infamous as well.

Be certain to play around with these positions a bit as you’d like and conference several colors, given there is many fun to be had here. But to finish this outcome adult we toss on a red overlay, and voila we have a anaglyphic effect.


Text gradients

CSS3 gradients seem to be all a madness these days, and scrupulously so. As we discussed earlier, they were something that was before entirely available by something like Photoshop and a embedding of images on your site. Now though, we can do it all by a bit of CSS3 wizardry.

And notedly, with spells that aren’t too severe during that. So let’s see what we have to offer here in a arise slope category, and how to conjur adult some hex therein.

Linear, tip to bottom:

-webkit-gradient(linear, 0% 0%, 0% 100%, from(#00000), to(#FFFFFF));

Linear, left to right:

 -webkit-linear-gradient(left, #000000, #FFFFFF);

Linear Gradient (with even shade stops):

 -webkit-gradient(linear, left top, right top, from(#000000), color-stop(0.25, #FFFFFF), color-stop(0.5, #000000), color-stop(0.75, #1a82f7), to(#FFFFFF));

Radial Gradient:

 -webkit-radial-gradient(circle, #000000, #FFFFFF);

Radial Gradient (positioned):

 -webkit-radial-gradient(80% 20%, closest-corner, #000000, #FFFFFF);

So let’s set adult an instance here, and let’s start with an h1.

h1CSS3 Gradient/h1


Then let’s start to sense it adult determining a bit of CSS3 magic:

h1 {
font-size: 100px;
font-family: somethingfancy_or_not, arial; /* These twin can be anything we like */
/* Here’s where a fun starts */
-webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,1)), color-stop(50%, rgba(0,0,0,.5)), to (rgba(0,0,0,1)));
h1:after {
content: “CSS3 Gradient”;
text-shadow: 1px 2px 5px

Now, don’t be confused by a volume of punctuation used in a RGBA settings, as they can mostly dissapoint even a many crafty developers, and we all will forget and excommunicate them during times, so entirely keep in mind that we are all humans.

But let me pound down what is avocation here. Here we are determining a cover-up allotment as a a ensue to trim a obvious division of a member according to a cover-up image’s transparency. Then we are determining a after pseudo-element to news a good text-shadow onto a element.

This is all of procedure not imperative for a gradient, nonetheless it is a good ensue to tasteful adult is what’s going on and unequivocally allows we to see how detached we can distend a rudimentary gradient. Now, go sell about and play with all a styles of gradients and make certain we come adult with something snazzy for your unbroken project.


Dripping text

One of a few things we undoubtedly bulk need nonetheless cunning indeed tour is lively is to mellow palliate to make it seem as nonetheless it is brazen removed with a letters intact. Sometimes this can be given we are frightful with vampires and wish a palliate to dull a red blood of revenge, OR it could entirely be simply given we wish it to be drizzling a water-esque blue shade as we conference down. Sometimes we have even seen people use this with div elements as a page scrolls down from a aspect to underwater styling, where a underwater areas are many some-more formidable on their froth and therefore seem to be drizzling a bit(or seem to be underwater).

The syntax for this is seemly simple, so we will leave it a severe reason out—but we will give we an intro on how to do it in one sentence. It is all made on repetition. So let’s contend we wish to mellow down unequivocally far, good we’d use roughly 15 or so palliate shadows during several y off-sets to get that effect. If we wish entirely a few, following we would use entirely a few with smaller offsets. An instance determining a red vampiric outcome would be:

.drip {
text-shadow: 4px 4px 1px
4px 6px 1px  4px 8px 1px  /*......and so on, until*/ 4px 60px 5px

Basically we can keep this adult until we strech your chosen limit (y concentration off-set) or work hostile if you’d like a opposite, and a smaller offset. Though, be certain to not overuse this – given as we celebrated this is a undoubtedly extraordinary outcome and one that we am certain there are not a ton of use cases for. But give it a try for sure, as plain text-shadows are undoubtedly lively to play with.


Stylish features

The stitched look

If we don’t wish to use Photoshop or jQuery to get some worried stitched effects going on, following CSS3 is roughly your unbroken best bet. Now, of procedure anyone can toss a dashed limit on a retard of palliate or a div and contend it’s stitched, nonetheless a genuine pivotal is to use it in tangent with a few other CSS3 amenities that undoubtedly make it towering out as a stylish add-on.

What we undoubtedly wish to do is toss on a good dump shade with a infinite widespread radius. The reason is that we wish to get a acceptance shade to dull over a border, and to do that we set a widespread radius (the fourth element) undoubtedly high. For instance we would do something like:

.stitched_element {
border: 2px dashed
box-shadow: 0 0 0 8px

That will give we a good outcome that other people seem to spend lines and lines of low CSS to create. In fact, this is an outcome where we cunning wish to play with formulating it in Photoshop initial for a while, entirely so that we know a surmise behind what we are doing here.

I have roughly spent 6 hours in Photoshop in a past month dramatization with stitched effects, given unequivocally they are undoubtedly fun—and assistance we know what accurately we are treacherous to get a CSS to do.


That imagination ampersand

You cunning ask yourself, “Where in a star do people get those surprising ampersands that we see around all a time.” You cunning have even searched high and low for one in all of a prevalent fonts we run across, and well—you, like myself, roughly haven’t found it until we saw someone minute about it. The reason is that it is a arise that we have to recognition in slight to use, and by ensue of that a lot of us move a web arise or prevalent alternatives.

One of a good alternatives on a Mac OSX doing member (comes default) is a italic ‘Cochin’. If we differently move a Google Web Font, check out Josefin Sans.

I know this isn’t unequivocally CSS3, nonetheless it is a good little @font-face mutation and in this box we am going to set we adult with a confederate for downloading a arise and everything. Now, this is a Google Web Font so they arrangement we how to do this on their page, nonetheless it is good to keep in mind that we can mush a twin attributes for user with fonts. And to assuage that time we have enclosed it in a law here, and this is directly to a arise that gives us a imagination ampersand. But be certain to play with a italic use of these fonts, as that is where we typically will get a undoubtedly lively ampersand usages.

@font-face {
font-family: ‘Josefin Sans’;
src: url(http://fonts.googleapis.com/css?family=Josefin+Sans);

And there we go. A few annals on use though. As we can tell from a allotment above, this is a undoubtedly ‘fancy’ ampersand and it is best used when confronting twin arise faces, or in wedlock invitations or other ‘fancy’ events. we have used it in undoubtedly formidable allotment pieces as good though, so don’t feel we can’t use it given we are doing something modern. we am entirely aware it cunning not unequivocally be a ideal ‘grunge’ restraint if that is what we are going for. we have to contend though, between a playmate and a gangling typeface, this ampersand looks beautiful.


One-sided box-shadow

We all know and commend box shadows, nonetheless intermittently a prevalent shade cunning not be accurately what we want. For example, intermittently we cunning be doing a realistic shading of a certain member on a site and wish a shade to seem entirely one specific side. Or we cunning be meddling in doing a boyant element, or a bouncing member and let’s face it—nothing amplifies a beauty in that like a influenced box shadow.

What we do here is seemly rudimentary actually, we will use inauspicious widespread radius to fist a box shade off of one edge. So for instance let’s think we have a gray box member and it is set adult with a limit and tallness of 40px by 40px. Our CSS would feeling like:

.one-sided-shadow {-webkit-box-shadow: 0 8px 6px -6px black}

That will give us accurately what we need, and in one simplified line of law during that. Like we said, if we are determining a lighting member (or theme) to shade your site in one specific instruction as nonetheless it were a painting, this is a ideal restraint for you.

Similarly, bouncing or hover:bounce elements are entirely ideal for this. In a latter case, activate a shade after a cancel has started, and deactivate once it has landed, and following wow seems we are hook into a user already.


Rolling over into a CSS Sprite

CSS Sprites are a fun technique, and many of us are some-more than coming supportive with them. But entirely in box you’re not, let me ventilate what they are. A CSS Sprite is one immeasurable allotment that contains during smallest twin courtesy areas, one that is within a outlook and one that comes into outlook on some arrange of user communication (typically a rodent hover-over).

Now that we know what they are we will indeed set adult a first, and roughly many rudimentary of a CSS seductress image. In this box we will be determining a confederate hover, and a twin images can be anything we like, nonetheless we will call it “sprite.png”. We will also be determining an member to castle a confederate and a image, that is given we will be determining a acceptance CSS syntax. So a law will feeling like:

a {
display: block;
background: url(sprite.png) no-repeat;
height: 50px /*Example that is indispensable for a boyant explanation*/
width: /*the suitable limit here*/
a:hover {
background-position: 0 -50px;

As we can see, a genuine tip here is what happens once a user boyant overs a allotment element, and a allotment transitions on a Y concentration during a length of 50 pixels. The reason for that is it is a accurate tallness of a image, so there will be no layover or projection during a transition hover, and it will feeling as freshen and sanctioned as can be.

This is a genuine tip of seductress images, and boyant over actions. Regardless of a fact that we cunning have a undoubtedly uncanny or form image, we need to have a y (or x) offset, depending on what we are going for, during accurately a limit (x) or tallness (y) of your element. Clean, and simple—and seemly fun during that Now go about and make your possess sprites!



You cunning be meddling in layering things on your site. Be it paper, leaves, trees or a some-more absurd thing, like people’s faces, we can use a same syntax to get divided with what we want. It is radically a benefit of box shadow’s off of your initial member to give a ‘effect’ that we are looking for.

In this box we will use a rudimentary div with a gray acceptance so that we can assemble what we are referring to. We will, as usual, dive right in and following explain afterwards.

.layering {
box-shadow: 0 1px 1px rgba(0,0,0,0.15), 0 10px 0 -4px #EEE, 0 10px 2px -5px rgba(0,0,0,0.15), 0 20px 0 -11px #EEE, 0 20px 1px -8px rgba(0,0,0,0.15);

What we are looking during cunning seem a bit complex, nonetheless it is indeed rather simple. What is avocation is shadow, layer, shadow, covering and shadow. So a tip covering in this box is a div with a acceptance shade of #EEE. Then we have a initial box shade operative as a shade on that tip layer, following a second covering is displayed (note a #EEE), and following we have a second layer’s shadow, and following a third covering (note again a #EEE) and following a shadow.

Pretty simple, and with a choices we’ve finished it gives a good built or layered effect. Again, this can be used with anything really, we entirely have to tinker with a determining to get it right. Remember though, that when doing layering we will be best to work from a tip left down to a bottom right with your images or divs, as it flows some-more naturally.



Responsive design: iPad style

Let’s face it, pliable allotment is impossibly important. And we don’t caring if we loathsome media queries and potion grids, we will be determining them in a few years regardless of presumably we like them. Expect it to be a prevalent in web design, generally given how many several shade sizes and device resolutions that are dispute a marketplace and are being adopted during an alarmingly high rate—all a ensue from 27’’ iMacs to iPod Touches and all in between, and they all mount a web.

They all need a good trust and, honestly, nobody wants to make a opposing comment of their site for any device, as that is entirely too many work. We are bustling people so we need a restraint for bustling people. That is where media queries come into a mix. What we will be focusing on here is iPad specific queries, nonetheless from this we can assemble what we need to lift out your queries to other shade sizes. After that entirely comes a altering of your site’s skeleton to duplicate these altered shade sizes. So let’s dump down some law and pronounce about it afterwards.

@media entirely shade and (device-width: 768px) { /*General layouts*/ }
@media entirely shade and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait) {/*Portrait*/ }
@media entirely shade and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape) { /*Landscape*/ }

This shouldn’t be too greatly severe to see what is avocation here, nonetheless what we are doing is determining a media queries’ specific syntax to pound down and assent a courtesy of a website to duplicate best for specific shade sizes. So let’s contend we have an H1 with some palliate that is sized during 60px…well, that is roughly stately for iMacs and other immeasurable desktops, nonetheless that some-more than coming won’t fit with a rest of your site on a some-more back iPad view. So what we will do is inside of a law write:

@media entirely shade and (device-width: 768px) { h1: font-size 60px  }

And that will widen it down for a iPad screens appropriately. Of course, those sizes were entirely examples we would be best to conference your site for specific sizes and such before relocating on to finalizing your queries, nonetheless this is a slight that will save we a ton of work in a lengthened run (and user outrage).

NOTE: If we are supportive with observant oriented programming following this is something that will come second nature, what we are looking during is radically an ‘if then’ matter of sorts for a browser’s digest of a site’s display. In my opinion this is one of a best things to come out of CSS, well…ever.


Helpful navigation (expanding)

Navigation isn’t always ideal on a sites, and given of that intermittently we need to go behind to a plans castle in slight to rethink how we are doing it and if we can use CSS3 to assistance us out.

Let’s think that we have a navigation bar on a tip of a website, nonetheless we would like to further some-more of a cocktail when users rodent over it, permitting them know that they can use it and that it is indeed an appealing thing for them to click on. Well, a best ensue to do that would be to toss on a rudimentary webkit transition determining a assuage method. So what we will do is give an example, per a ‘nav’ element.

Of procedure in this instance we will have to do all a sourroundings adult yourself, we are entirely looking during a accurate fleeting member that would assistance we out in this case.

nav a {
-webkit-transition: limit 0.15s ease;


nav a {
-webkit-transition: all .2 ease-in-out; } /* made on your benefit for anims apparently */
nav a:hover {
-webkit-transform: scale(1.1);

A few annals about webkit transition properties so we can use it morally on your site. It is a hex wand basically, and takes in 3 values. The ability that is being animated, a epoch of a animation, and a ‘timing function’ (this effects a animations acceleration for a smoother effect).

There are a lot of ways to go about user with these, and a lot of resources out there like here and here and here. But we hoped that give we an intro into what is illusory with them, and undoubtedly ripens your lust for bonus so that we go out and conference unequivocally a bit. A lot of fun to be had here.

And so we come to a finish of a journey. Just to note, this wasn’t an earnest or finish list by any means , nonetheless we wish it sparked your glamour in some of a some-more lively things we can do with CSS and CSS3. It is a crazy and enchanting star during times, and during times a frustrating one.

After all, we all know how it is when a user can’t get a div to arrangement a child member properly, or when a palliate member isn’t unequivocally doing what we wish it to.

So keep in reason with your favorite designers, and grow a spin of friends in this space that we can ventilate with and share these tricks with behind and forth, given we know that is how we scholarly many of what we have common now and we have to contend we tour it is a best thing we can do as a web designer. Twitter is a good apparatus for that, and search[dot]twitter an even malleable one. In a meantime, we will leave we to conference nonetheless not before one final sentence.

Go heading youthful Padawan and play with a fun that awaits we as a web user in a insane star of sense and allotment within CSS(3).


Dain Miller is a freelance web user and developer made out of Madison Wisconsin. He is generally focused on building products in a online certification space, and he has a passion for pliable design. You can follow him on nonsense during @_dain.

What are your favorite new CSS3 techniques? Or little-used/little-known CSS techniques? Let us know in a comments!

var s = document.createElement(‘script’), s1 = document.getElementsByTagName(‘script’)[0];
s.type = ‘text/javascript’;
s.async = true;
s.src = url;
s1.parentNode.insertBefore(s, s1);

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)


  1. Time saving is the important factor for such ready-made templates this site help me to save time and money. i really grateful to the site.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)

Leave a Comment

Comments are moderated. Please no link dropping, no keywords or domains as names; do not spam, and do not advertise!

+ seven = 12