background preloader

CSS

Facebook Twitter

30 Useful CSS Snippets for Developers - Ahref Magazine. Swap Your Page’s Background Image on Navigation Hover. What the Heck Is CSS Specificity? CSS specificity is a topic that many new front end coders avoid for as long as possible.

What the Heck Is CSS Specificity?

It sounds complicated, there are all of these rules, you might even have to do some math! Create an Animated Share Menu With CSS. Sharing is an integral part of the web experience and designers are always looking for new and interesting ways to highlight or show off the sharing portion of their pages.

Create an Animated Share Menu With CSS

Today, we’re going to build a simple sharing menu that integrates an icon font as well as some animations. The final product is inspired by Disqus, but has a unique twist of its own. Let’s jump in and see how it works. Perform a Split Reveal With CSS. CSS can pull of a lot of really great image tricks: size manipulation, desaturation, even blur.

Perform a Split Reveal With CSS

One limitation that we run into though is that you can’t really slice an image into multiple parts. For instance, if you wanted to cut a photo in half and animate the separation, you couldn’t really do it with pure CSS. All About Cubic Bezier Curves & Transitions. In the last post, we looked at the basics of CSS transitions, including how to use easing to control how your animation flows.

All About Cubic Bezier Curves & Transitions

In this post, I want to look deeper at a very powerful easing feature; cubic bezier curves. In short, they let you define exactly what path your animation will take, and thanks to some awesome community tools, they are extremely easy to use (No maths required at all). This gives you total flexibility with your transitions. One of the best tools is the free Cubic-Bezier.com by Lea Verou. It lets you make new curves and see them in action just by dragging the handles. The syntax is simple too. Code a Spinning Circular Menu With CSS. Don’t be a square, break outside your boring box and try on a circle for size.

Code a Spinning Circular Menu With CSS

Today we’re going to build a circular navigation menu that spins to different points as the user hovers over an anchor. Along the way we’ll have to overcome several obstacles like how to structure our HTML to be conducive to a remote hover and how to position all of the elements just right so that everything works. Performance & Organization - An Advanced Guide to HTML & CSS. Having the ability to write HTML and CSS with a solid understanding is a great expertise to have.

Performance & Organization - An Advanced Guide to HTML & CSS

As a website’s code base and traffic grows, a new skill set comes into play, one that is extremely important to both development time and user experience. Knowing the fundamentals of website performance and organization can go a long way. The organization and architecture of a code base can greatly affect not only the speed of development, but also the speed at which pages render. Both of which can be sizeable concerns not only for developers but also users. Taking the time to design the right structure for a code base, and identify how all of the different components will work together, can speed up production and make for a better experience all around. Additionally, taking a few small steps to improve the performance of a website can pay off in dividends. Strategy & Structure Style Architecture.

CSS Style Guides. As we wrap up our recent poll on ordering CSS properties, it brings up the larger issue of CSS style guides.

CSS Style Guides

How to Customize Browser Scrollbars Using CSS. We`re all using web browsers to navigate on internet.

How to Customize Browser Scrollbars Using CSS

Most of you(to be more specific, 65% according to my analytics) are using Chrome and Safari to navigate through this website. These 2 browsers have something in common: they are both built on the WebKit platform, or in other words, they are WebKit browsers. Should You Use Inline-Blocks As A Substitute For Floats? When it comes to developing a site layout with css, floats do most of the heavy lifting.

Should You Use Inline-Blocks As A Substitute For Floats?

We use them for the big blocks like our main content and sidebar and we use them for the smaller blocks inside these big ones. Are floats always the answer? Bootleg.css Twitter Bootstrap. Raw denim you probably haven't heard of them jean shorts Austin.

Bootleg.css Twitter Bootstrap

Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Build an Adaptive CSS Modal Window. This tutorial is yet another fun CSS project that helps you build something that you may have thought was only possible with JavaScript.

Perfect Full Page Background Image. Learn Development at Frontend Masters This post was originally published on August 21, 2009 and is now updated as it has been entirely revised. Both original methods are removed and now replaced by four new methods. The goal here is a background image on a website that covers the entire browser window at all times. Let’s put some specifics on it: Fills entire page with image, no white spaceScales image as neededRetains image proportions (aspect ratio)Image is centered on pageDoes not cause scrollbarsAs cross-browser compatible as possibleIsn’t some fancy shenanigans like Flash.