viernes, 5 de agosto de 2011

30 Excellent CSS3 Tutorials

30 Excellent CSS3 Tutorials: "
In this post we have collected some useful and fresh CSS3 tutorials for developers and designers. If you like these CSS3 tutorials you might also want to check out our previous posts below.

26 Useful jQuery Navigation Menu Tutorials

28 Fresh jQuery Tutorials

Making a CSS3 Animated Menu



Spin those Icons with CSS3



Photobooth with PHP, jQuery and CSS3



Create a Multi Color and Size CSS3 Buttons



How To Create a Stylish Button Entirely with CSS3



Create a Grid Based Web Design in HTML5 & CSS3



Create Digital Poster Design with CSS3 Only



Create a Stylish Contact Form with HTML5 & CSS3



How to Create a CSS3 Tabbed Navigation



Pressable CSS3 Social Buttons



How to Create a CSS3 Wheel Menu



How to Create a Modern Ribbon Banner Navigation Bar with Pure HTML/CSS3



DARK MENU: PURE CSS3 TWO LEVEL MENU [TUTORIAL]



Cool notification messages with CSS3 & Jquery



Sexy CSS3 menu



The Apple.com navigation menu created using only CSS3



CSS3 tooltips



Advanced (yet awesome) pure CSS3 boxes without using images



How to create slick effects with CSS3 box-shadow



Animated CSS3 helix using 3d transforms



CSS3 dropdown menu



How to create a cool and usable CSS3 search box



Create a CSS3 Image Gallery with a 3D Lightbox Animation



CSS3 Transition Animations With jQuery Fallbacks



Sexy Image Hover Effects using CSS3



Dark Button Navigation Using CSS3



How to Code a Clean Website Template in HTML5 & CSS3



Pure CSS3 Multi Level Drop Down Navigation Menu



CSS3 Search Box Inspired by Apple.co



Creating an Awesome Drop-Down Nav with CSS3 & jQuery




"

Mastering the HTML5 tag

Mastering the HTML5 tag: "

Using <audio> to insert a sound file on your website

Here is the most basic use of the <audio> tag: On this example it loads a mp3 file and play it. Notice the autoplay attribute which is used to play the sound automatically. That said, you shouldn’t play sounds automatically on a website: this is extremely boring for visitors.
<audio src="sound.mp3" autoplay></audio>

Play sound in loop

Want to loop a sound? The loop attribute is here to help. But once again, you shouldn’t abuse autoplay and loop playing if you want to prevent people from prematurely leaving your website!
<audio src="sound.mp3" autoplay loop></audio>

Display browser controls

Instead of playing sounds automatically, which is definitely a bad practice, you should let the browser display some controls such as volume, and a play/pause button. This can be done easily, simply by adding the controls attribute to the tag.
<audio src="sound.mp3" controls></audio>

Multiple file formats

<audio> is supported by most modern browsers, but the problem is that different browsers do not support the same file format. Safari can play mp3s, but Firefox can’t and play .ogg files instead. But Safari can’t play .ogg files…
The solution to this problem is to use both formats, so visitors can hear your sound, whatever the browser they use.
<audio controls>
<source src="sound.ogg">
<source src="sound.mp3">
</audio>

Specify MIME types

When using different file formats, it is a good practice to specify the MIME type of each file in order to help browser to localize the file they support. It can be done easily, using the type attribute.
<audio controls>
<source src="sound.ogg" type="audio/ogg" >
<source src="sound.mp3" type="audio/mp3" >
</audio>

Fallback for old browsers

And what if the visitor still use IE6, or another prehistoric browser with no support for the <audio> tag? A fallback can be easily implemented: As shown below, a message will be displayed to browsers who do not supports the <audio> tag.
<audio controls>
<source src="sound.ogg" type="audio/ogg" >
<source src="sound.mp3" type="audio/mp3" >
Your browser does not support the audio tag!
</audio>

Buffer files

When playing large files, it is indeed a good idea to buffer files. To do so, you can use the preload attribute. It accept 3 values: none (If you don’t want the file to be buffered), auto (If you want the browser to buffer the file, and metadata (To buffer only metadata when page loads).
<audio controls>
<source src="sound.mp3" preload="auto" >
</audio>

Control HTML5 <audio> with JavaScript

Controling a HTML5 audio player with JavaScript is pretty easy. The following example (Taken from Jeremy Keith book HTML5 for WebDesigners) shows how you can buid an audio player with basic controls (Play, Pause, Volume Up, Volume Down) using HTML and JavaScript.
<audio id="player" src="sound.mp3"></audio>
<div>
<button onclick="document.getElementById('player').play()">Play</button>
<button onclick="document.getElementById('player').pause()">Pause</button>
<button onclick="document.getElementById('player').volume+=0.1">Volume Up</button>
<button onclick="document.getElementById('player').volume-=0.1">Volume Down</button>
</div>
That’s all for today. I hope this article helped you to understand what you can do with the HTML5 <audio> tag. Any questions? Feel free to leave a comment below!
"

Expanding Fullscreen Grid Portfolio

Expanding Fullscreen Grid Portfolio: "

View demo Download source
Today we want to share a neat experimental portfolio template with you. The main idea is to have a grid layout that we create with jQuery Masonry. Clicking to view more, we expand the according item to fullscreen in order to show a longer description of the item and a representative fullscreen background image.
Each item has a little slideshow of thumbs which will be animated to the right position once the portfolio item gets “expanded”. If you know Flipboard for the iPad, then you might recognize this effect we got inspired with.
The beautiful images are by Kyle van Horn, check out his Flickr Photostream.
jQuery Masonry is by David deSandro and you can find it here.
The HTML for an item in the portfolio is the following:
<div class="item block" data-bgimage="images/1.jpg">
<div class="thumbs-wrapper">
<div class="thumbs">
<img src="images/thumbs/1.jpg"/>
<img src="images/thumbs/2.jpg"/>
</div>
</div>
<h2 class="title">Personal Works</h2>
<p class="subline">Concept <span class="fancy">&</span> Design</p>
<div class="intro">
<p>
Some short introduction
<a href="#" class="more_link">View project</a>
</p>
</div>
<div class="project-descr">
<p>A longer description...</p>
</div>
</div>
We use a jQuery template for the fullscreen structure:
<!-- Fullscreen jQuery template -->
<script id="fullviewTmpl" type="text/x-jquery-tmpl">
{{html bgimage}}
<div class="full-view">
<span class="full-view-exit">Exit full screen view</span>
<div class="header">
<h2 class="title">Expanding Fullscreen Grid Portfolio</h2>
<div class="full-nav">
<span class="full-nav-prev">Previous</span>
<span class="full-nav-pages">
<span class="full-nav-current">${current}</span>/
<span class="full-nav-total">${total}</span>
</span>
<span class="full-nav-next">Next</span>
</div>
<p class="subline">${subline}</p>
<span class="loading-small"></span>
</div>
<div class="project-descr-full">
<div class="thumbs-wrapper">
<div class="thumbs">{{html thumbs}}</div>
</div>
<div class="project-descr-full-wrapper">
<div class="project-descr-full-content">
{{html description}}
</div><!-- project-descr-full-content -->
</div>
</div><!-- project-descr-full -->
</div><!-- full-view -->
</script>
When loading the page, we have the initial grid view:

And when we click on “View Project”, the fullscreen mode will be loaded:

We hope you like this little experiment and find it useful!
View demo Download source
Share and Enjoy:Diggdel.icio.usFacebookLinkedInRedditRSSTwitterGoogle BookmarksStumbleUponTechnoratiDZoneemailblogmarksDesign FloatDiigoFriendFeedGoogle BuzzIdenti.caMisterWongNewsVinePing.fmPlurkPosterousSlashdotSuggest to Techmeme via TwitterTumblr

"