background preloader

CSS

Facebook Twitter

How to Keep Your CSS3 Code Markup Slim. Web developers can save a lot of time using more sophisticated CSS3 syntax. Users who visit your page are expecting the fastest possible load time – which makes it your responsibility to keep file sizes down. There are plenty of shorthand tricks with CSS and especially under the new CSS3 model. I have put together a few of these ideas in the guide below.

We should also touch upon other areas such as minifying your CSS code. There are in-browser tools available to aid developers in the styling process but you would want to combine shortcodes with this file-size reduction to ultimately streamline the rendering process of your website. Basic Tips on Formatting Before we jump into the actual CSS syntax I want to go over the topic of how to write your CSS.

Inline Level With inline styles each property is written one after the other with only spaces to separate them. Block Level Neither way of writing CSS is specifically better than the other. Keeping Them Slim RGBa Color Transparency/Opacity <! <! CSS3 Generator. How To Create CSS-Based Content Accordion. In today’s tutorial we are going to learn how we can create a horizontal and vertical content accordion by just using CSS3. There are many jQuery plugins out that can do this job for you but what do you do if the visitor has Javascript turned off, then the accordion won’t work correctly.

If your accordion is purely in CSS then it will work for all your visitors. We are going to create a horizontal and vertical content accordion. On clicking the headline text the slide will open displaying the full content, and here’s a quick preview (screenshots) how they look like. Like what you see? 1. To start with we are going to create the HTML for the accordion. The structure needs a container div and then have a section for each slide in the accordion. <div class="accordion horizontal"> <section> <h2>About Us</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. <div class="accordion horizontal"><section><h2>About Us</h2><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. 2. A Pure CSS3 Cycling Slideshow. Inspiring CSS3 Animation Demos.

Since the introduction of CSS3, there are really a lot of hot debates revolve around its possibilities and usability. However, there are also a lot of interesting experiments hand-crafted to explore its potential. Though the experiments by any mean do not prove the CSS3′s usability, they really showed the true possibilities of CSS3, to a degree that major developers believe the CSS3 is the future. Is that true? Judge it with your eyes. In this showcase we are gonna show nothing but just 38 inspiring CSS3-based animation demos that purely discover the true potential of the CSS3. Besides the pure experiments, you will also see some practical examples of how CSS3 can be applied into web design to make it sweeter and sexier.

Enough said, let us explore the fantastic world of CSS3! You may also be interested in: You are strongly recommended to view these demos using the latest version of Safari or Developer version of Google Chrome. Animated 3D Helix Animated Buttons Animation Menus AT-AT Walker. Create a unique contact form with css3 transitions | PeHaa Blog. Inspired by the contact form on Clear Span Media website I decided to recreate an effect of a letter sliding out from an envelope on mouse hover. You may see the demo here. It works in browsers supporting css3 transitions. In IE the envelope is not visible, I certainly could have played a bit more with jQuery to reproduce a similar effect, but it’s not a part of this tutorial. Let’s start with the html structure: The idea is as follows (I tried to illustrate it in the scheme below): the #form_wrap is positioned relatively (top:0), with the envelope fixed to its bottom.

We will need an envelope cut into two parts, the top part, visible over the letter (after.png) and the bottom part (before.png) partially covered by the letter. Let’s start to complete the stylesheet: Next, we’ll add some styling to the form elements: So far we haven’t used the transition, click here to see where we are. We will add the same transition to form and #form_wrap. Pure CSS 3D Bar Graph.

How to Design a Horizontal Accordion (Plus an Exclusive Freebie!) Code Snippets. Coding Kung-fu: 35 Graphics Built Purely With CSS3. Look at the graphics below, awesome Photoshop works right? Nah, they’re created by CSS3. Yes, they’re completely “drawn” by CSS3! When we have seen enough CSS3 animations we thought those are all CSS3 can do as a potential Flash killer, but we’re wrong. Developers perhaps don’t satisfy with the fun of animation, so again, they push the boundaries of CSS3 to challenge the graphic editor’s realm.

With this post comes 35 carefully crafted CSS3 graphics which even include something you wouldn’t relate with CSS3 like Apple iPhone, cartoon character Doraemon, and more surprises! Heck, some of them even come with detailed tutorial that teach you how to achieve it! So don’t miss the great chance to learn to create graphic using CSS3 and little bit of HTML, let’s get naughty with CSS3!

You are strongly recommended to view these demos using the latest version of Safari or Developer version of Google Chrome. RSS Feed Icon RSS Feed Icon built with CSS3, exclusively from Hongkiat! Apple iMac Coffee Cup. A Pure CSS3 Cycling Slideshow.