background preloader

Kick-Start Your Project: A Collection of Handy CSS Snippets

Kick-Start Your Project: A Collection of Handy CSS Snippets
Don't start your project with an empty style sheet: there are many great snippets that can make your life easier and speed up web development. We are going to show you some handy snippets that you might find useful for kick-starting your next project. In one of the previous articles “Basic Ready-to-Use CSS Styles”, we saw how we could create a suite of classes to help the design process while making a website. I hope you made your own set of patterns! Today we are going to see how we can continue this exercise with some things a little bit more technical. I’ll show you a bunch of CSS snippets you may or may not know, which can dramatically increase your CSS development speed. Indeed, isn’t there some properties or CSS tricks you always have to check the syntax for, every single time you want to use them? Of course you do my friends! Before we go, let me tell you how I divided this article: Shorthand classes Let’s begin with shorthand classes, which are a very common things. Nothing more.

http://tympanus.net/codrops/2012/10/25/kick-start-your-project-a-collection-of-handy-css-snippets/

Related:  COdrops TutorialsnewSiteRead • Listen • Learn

Animated Content Tabs with CSS3 About us You think water moves fast? You should see ice. Some Useful JavaScript & jQuery Snippets - Part 3 How to hide all children div except a specific one with jQuery? $('#target div:not(#exclude)').hide(); //or $('#target').children().filter(':not(#exclude)').hide(); Detecting when a div’s height changes using jQuery $('element').bind('resize', function(){ alert( 'Height changed to' + $(this).height() ); } Delete all table rows except first $('someTableSelector').find('tr:gt(0)').remove(); Selecting root element of a certain level in the document 1 level: $('*:not(* *)'); […] How to hide all children div except a specific one with jQuery? Millennials Are More Racist Than They Think - Sean McElwee - POLITICO Magazine News about race in America these days is almost universally negative. Longstanding wealth, income and employment gaps between whites and people of color are increasing, and tensions between police and minority communities around the country are on the rise. But many claim there’s a glimmer of hope: The next generation of Americans, they say, is “post-racial”—more tolerant, and therefore more capable of easing these race-based inequities. Unfortunately, closer examination of the data suggests that millennials aren’t racially tolerant, they’re racially apathetic: They simply ignore structural racism rather than try to fix it. In 2010, a Pew Research report trumpeted that “the younger generation is more racially tolerant than their elders.” In the Chicago Tribune, Ted Gregory seized on this to declare millennials “the most tolerant generation in history.”

The algorithm for a perfectly balanced photo gallery – Summit Stories from Crispy Mountain Remember the days in college when you learned all about the big Oh!'s and re-implemented all these sort-algorithms for the hundredth time? If you are a web developer like me, chances are you never had to touch a single one of these algorithms ever again. I mean, hands down, 99% of the hard work in web development is working around browser quirks and messing with other people's code. And then, all the sudden, that algorithm knowledge actually becomes very useful. The idea

Item Blur Effect with CSS3 and jQuery Today we will show you some examples of websites that are using beautiful and inspiring color combinations that match perfectly and create an eye candy... For me, Photoshop is becoming more and more of a prototyping or blue printing tool: it’s basically just a canvas... CSS3 opens up so many crazy possibilities and today we want to show you how to go wild with splash and coming soon page effects using CSS3 animations. Visual thesaurus using arbor.js Wow, I can’t believe we are at the end of January – one twelfth of the year gone already! I’ve been so busy this month I’ve barely had time to sit down and work on any personal projects. Thankfully I had a spare few hours over the weekend to work on a project I’ve been meaning to finish for a couple of weeks: a visual thesaurus using JavaScript. Visual thesaurus representation of the word 'clean'. You may (or may not) know of the Visual Thesaurus by Thinkmap; very useful but it’s a paid for service, I use it so infrequently I can’t justify paying for it (there is a free trial though).

59 Free Twitter Tools and Apps That Do Pretty Much Everything Twitter is a fascinating adventure of relationships, entertainment, education, and fun. Now imagine layering on a few dozen power-ups. That’s how it feels sometimes when you find just the right Twitter tool. And there’s a tool for practically every desire or whim. Absolute Horizontal And Vertical Centering In CSS Rethinking Mobile Tutorials: Which Patterns Really Work? Pattern libraries are a great source of inspiration and education for designers. But common practice doesn’t always equal best practice. In this post, we’ll look at why many common tutorial patterns are ineffective and how you can leverage game design principles to increase user engagement. After the release of the first edition of Mobile Design Pattern Gallery, Intuit asked me to speak with its mobile team.

Simple Icon Hover Effects with CSS Transitions and Animations Previous Demo Back to the Codrops Article Mobile Desktop Partners Support Security Settings Time Videos List Refresh Checking if an element is visible on-screen using jQuery by Sam Sehnert Download jQuery VisibleView Demo We recently built a little jQuery plugin which allows us to quickly check if an element is within the browsers visual viewport, regardless of the scroll position. If a user can see this element, the function will return true. ?

Janelle Monae Building A Music Empire Janelle Monáe wants the world to know that Wondaland Records, the singer-songwriter-producer's new venture with Sony Music Entertainment's Epic Records, is not merely a record label—it's a movement. Wondaland is "a joint dream in which a group of artists set out to swim towards a boat all together—and in some ways, I'm a lifeguard," says Monáe, 29, the Kansas City native who grabbed our attention in 2010 with her critically hailed debut, The ArchAndroid, and who would go on to become a face of Procter & Gamble's CoverGirl, alongside Katy Perry and Pink. She is also a juror for this year's Clio Music Awards. Atlanta-based Wondaland reps an utterly cool lineup of acts, including Jidenna, whose debut single "Classic Man" dropped last month. Wondaland's superstars-to-be, photographed at the new label's home base in Atlanta (l. to r.): Jidenna; Alex Belle, from St. Beauty; Roman GianArthur; Isis Valentino, from St.

Focus transition Playground Why? Keyboard navigation has a major downside: it’s not clear where the focus moves upon pressing the Tab key. Parallax Content Slider with CSS3 and jQuery Easy management Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean. Read more

an inline lightbox alternative with slideshow x Note: To see the full potential of CSS3 styling (shadows, gradients, rounded corners, alpha transparency), please view this page in a modern webkit or mozilla browser (Firefox 3.5+, Safari 4, Opera 10.50, Chrome 4). Other browsers will degrade gracefully. Except for IE6, though, which I didn't bother to include. Feel free to come up with your own solution ;-) Example 1

Related:  CSS3