Skip to main content

Chris Coyier

Founder, writer, designer, spam-deleter, email personality

Article

New Poll: Working Environment

The new poll (in the sidebar) asks:

In what environment do you primarily work?

I’ve worked from home for a lot of years but that will soon be changing. I’m interested to know the environment readers of this site work in.

If you don’t work at the moment, there is an option for that. If you are a student, there are options for that. If you are a student that works, vote based on the working part. … Read article “New Poll: Working Environment”

Article

Fun With Blurred Text

We'll cover how to blur text with CSS3 and do it safely by feature-detecting first. Then we'll do a bunch of experiments with individual letter blurring and also some clever jQuery which gives us deeper access into specific values of a text-shadow.
Snippet

Display Loading Graphic Until Page Fully Loaded

<!DOCTYPE html>
<html class="no-js">

<head>
	<meta charset='UTF-8'>
	
	<title>Simple Loader</title>
	
	<style>
		/* This only works with JavaScript, 
		   if it's not present, don't show loader */
		.no-js #loader { display: none;  }
		.js #loader { display: block; position: absolute; left: 100px; top: 0; }
	</style>
	
	
	<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
	
	
	<script src="https://github.com/Modernizr/Modernizr/raw/master/modernizr.js"></script>
	<script>
		// Wait for window load
		$(window).load(function() {
			// Animate loader off screen
			$("#loader").animate({
				top: -200
			}, 1500);
		});
	</script>	
</head>

<body>
		
	
	<img src="download.png" id="loader">
	
	
	<img src="//farm6.static.flickr.com/5299/5400751421_55d49b2786_o.jpg">
		
</body>

</html>
Read article “Display Loading Graphic Until Page Fully Loaded”