background preloader

Retina graphics for your website

Retina graphics for your website
How it works There are now 4 ways to use retina.js: Automatically swapping out "src" paths on "img" tags. Automatically swapping out background image URLs in inline styles. Manually specifying the location of a high-res image variant. Automatically creating media queries for CSS background images. In the most common case, you might have an image on your page that looks like this: <img src="/images/my_image.png" data-rjs="3" /> By using the "data-rjs" attribute, you're telling retina.js that this image would like to opt in. By giving the "data-rjs" attribute a value of "3", you're telling retina.js that you have created high-res image variants for all environments up through 3 times traditional pixel density (meaning both 2x images and 3x images). When a page loads, the script will check the user's environment to see what its display capabilities are. In this case, the script won't try to dynamically serve up variants based on the user's environment. We'll get to these in a moment. How to use

http://imulus.github.io/retinajs/

Related:  Images adaptativesTECHNIKFront-end Development

Open Iconic, a free and open icon set Displaying Open Iconic's SVGs are a snap. Just treat them like your typical image and away you go! Pro tip: Don't forget the alt attribute. CSS3 Responsive Slider / Carousel Using Radio Buttons Select catcher Created by Ian Hansson (@teapoted) Art from Brendan Zabarauskas (@bjzaba_). Foundation Icon Fonts 3 Use 283 icons with 1 font A custom collection of 283 icons that are stored in a handy web font. View All Icons » Style 'em with CSS A couple lines of CSS and the right markup will get you going in no time. A Baseline for Front-End Developers 12 Apr 2012 edit I wrote a README the other day for a project that I'm hoping other developers will look at and learn from, and as I was writing it, I realized that it was the sort of thing that might have intimidated the hell out of me a couple of years ago, what with its casual mentions of Node, npm, Homebrew, git, tests, and development and production builds. Once upon a time, editing files, testing them locally (as best as we could, anyway), and then FTPing them to the server was the essential workflow of a front-end dev. We measured our mettle based on our ability to wrangle IE6 into submission or achieve pixel perfection across browsers. Many members of the community -- myself included -- lacked traditional programming experience. HTML, CSS, and JavaScript -- usually in the form of jQuery -- were self-taught skills.

CSS Selectors Level 3 - A Quick Reference Any Element The following will result in both the <h1>and <p> elements having hideous orange backgrounds rendered in Comic Sans. Time for me to go learn about proper web design! jq-tiles Pig ham: hock pork loin brisket pastrami frankfurter andouille. Sausage: ground round sirloin ball tip beef ribs. Pork turkey: shoulder, filet mignon chuck t-bone bacon. Web Design 2014: What to Watch Out For This year has been a brilliant year in web design. More than any other year perhaps, huge strides have been made towards the maturing of the field. Let's have a look at some of what we can expect for the future of web design as an industry. A Baseline for Front-End Developers 12 Apr 2012 edit I wrote a README the other day for a project that I'm hoping other developers will look at and learn from, and as I was writing it, I realized that it was the sort of thing that might have intimidated the hell out of me a couple of years ago, what with its casual mentions of Node, npm, Homebrew, git, tests, and development and production builds. Once upon a time, editing files, testing them locally (as best as we could, anyway), and then FTPing them to the server was the essential workflow of a front-end dev. We measured our mettle based on our ability to wrangle IE6 into submission or achieve pixel perfection across browsers. Many members of the community -- myself included -- lacked traditional programming experience. HTML, CSS, and JavaScript -- usually in the form of jQuery -- were self-taught skills.

Slicebox - 3D Image Slider Creative Lifesaver Honest Entertainer Brave Astronaut Affectionate Decision Maker Faithful Investor Groundbreaking Artist Selfless Philantropist Example 4: Same like example example 3, with a higher disperse factor

Improve the payment experience with animations Animations add context This transition shows how an animation can be useful for the user. It becomes clear that we ask for their phone number as part of the Remember me step, that the phone input shows up because of the action you took (checking Remember me). Shake shake shake Bash Shell Scripting - 10 Seconds Guide This Bash shell scripting guide is not a detailed study but a quick reference to the BASH syntax. So lets begin... Common environment variables PATH - Sets the search path for any executable command. untitled Jump to progress the Jarallax.jumpToProgress method allows the user to animate the Jarallax animation to a position in the animation. This is a very handy method for navigation.

Adaptive Placeholders Adaptive Placeholders A while ago I designed an interactive placeholder thing for our forms and wrote it entirely in CSS. I made it assuming no one would ever notice, so you can imagine my surprise when I saw that it got featured on LittleBigDetails, one of my favorite blogs! To show my gratitude I thought I would share how I designed that placeholder and how it manages to adapt to user input.

Related:  24/07/2012 - DropZonePlugins