Erstellt am 25. Juli 2011

17 CSS/HTML Effects with Cross-Browsing Alternatives

17 CSS/HTML Effects with Cross-Browsing Alternatives

Well, we surely have a lot of different ways to achieve similar effects and with CSS the hardest part is to make it look good in almost every browser.

You don’t need to reinvent the wheel every time, if you get one good snippet that does what you want (and you understand what is happening) you don’t need to reinvent it every time you need a simple round corner, right?

Thus, our point here is to collect some cool CSS effects that you should be using:

• Min / Max width (IE included)
• RGBA (IE included)
• Opacity (IE included)
• Image rotation / scaling (IE included)
• FullScreen Background (IE included)
• Background pattern or bullet without image file
• Text Shadow (IE included)
• Multiple borders (IE included)
• Box Shadows (IE included)
• Rounded corners
• Screen reader only accessible content
• Don’t use negative text-indent
• Clearfix (IE included)
• @font-face (IE included)
• Pull quotes without image
• CSS for iPhone4 (higher resolution)
• CSS landscape / portrait orientation for mobiles

So, Let’s rock!

Weiter lesen

VN:F [1.9.10_1130]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.10_1130]
Rating: 0 (from 0 votes)

Erstellt am 15. Juli 2011

Mobile Safari: Tolle Neuigkeiten im iOS 5

NewImageEndlich: so wie es momentan aussieht, unterstützt Mobile Safari unter iOS 5 die CSS Regeln “position: fixed” und “overflow: auto” bzw. “scroll”. Container, die mehr Inhalte boten, als dargestellt werden konnten, konnte bis und mit iOS 4 nur mit einem Scrollen mit zwei Fingern gescrollt werden. Wieso dies Apple so gehandhabt hat, ist mir immer noch schleierhaft. Ich habe auch schon sehr viele Supportanfragen diesbezüglich erhalten und bis anhin musste ich den Leuten erklären, sie müssten zwei Finger verwenden. Nun scheint Apple sich dies überlegt zu haben und externe Tools wie “iScroll” sollten nicht mehr notwendig sein. Natürlich ist es noch offen, ob diese Neuerungen auch im endgültigen Release vorhanden sein werden, doch gehe ich davon momentan aus, da diese Neuerungen schon in mehreren Beta Versionen vorhanden waren. Hoffen wir, dass es sich Apple nicht noch anders überlegt.

Auch die Eigenschaft “position: fixed” bringt viele neue Möglichkeiten für das Design. Insbesondere sollten dann wahrscheinlich alle Lightboxes zuverlässiger funktionieren.

Halleluja!

VN:F [1.9.10_1130]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.10_1130]
Rating: 0 (from 0 votes)

Erstellt am 14. Juli 2011

CSS3 Animation vs. jQuery Animation

While working with jQuery on a client project I found that a simple animation of a background image, fading in and out in a loop, was very CPU hungry. Per default it used about 33% of the CPU, which I think, isn’t nice for a very simple animation. The problem actually is the loop, changing the opacity value dynamically over a short period of time. So my first fix was to set the fx.interval to a bigger value with the following code:

jQuery.fx.interval = 60;

In addition I inserted a small stop of 400ms and 800ms when the animation was completed at the point where the element was fully faded in and out. This brought down the CPU to about 13%, which is much better.

Yesterday I read about the new CSS3 animation technique which is hardware accellerated. So today I made a test on my office mac (iMac Core 2 Duo, 2.93 GHz) with the pulsating effect using pure CSS3 animations. If you are interested, here is the code:

.box {
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: ease-in-out;
-webkit-animation-name: pulse;
-webkit-animation-duration: 3s;

}

@-webkit-keyframes pulse {
0% {opacity: 0.5;}
30% {opacity: 0.9;}
100% {opacity: 0.5;}
}

I loaded the page (with the jQuery animation disabled) in Safari and guess what? The CPU usage was back at 33%.

I know, my mac isn’t the newest one and you probably get a better result but many visitors won’t have a "better" machine while browsing your site.

What does this all mean? CSS3 animations are terriffic but do use a lot of your processor’s power. There is no way to fine tune the animation with CSS3 the same way you can using a framework like jQuery. So, as long as CSS3 animations aren’t CPU friendly you better stick with jQuery.

VN:F [1.9.10_1130]
Rating: 8.0/10 (5 votes cast)
VN:F [1.9.10_1130]
Rating: +2 (from 4 votes)

Erstellt am 12. Juli 2011

20 New Tools for for Easier CSS Development

via Speckyboy Design Magazine

There are many tools built to help with CSS, and improved ones are constantly being created. The fresh tools we have for you in this article will greatly improve your work-flow, whether that be by solving validation or debugging snags, or taking care of many of those tedious repetitive tasks that every project requires, or by simply offering solutions to many of those tasks that are time consuming (like sprites) and at times challenging (CSS3 animations). Read More >>

Interessanter Blog-Eintrag gefunden im Web mit dem Pulse News Reader fürs iPad

VN:F [1.9.10_1130]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.10_1130]
Rating: 0 (from 0 votes)

Erstellt am 6. Juli 2011

Boxjs – Different Approach to Script Loading

via Script & Style

Boxjs is a modular script loader with a twist. It delivers your scripts to the user as a single, compressed and cached file via … Read More >>

Interessanter Blog-Eintrag gefunden im Web mit dem Pulse News Reader fürs iPad

VN:F [1.9.10_1130]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.10_1130]
Rating: 0 (from 0 votes)

Erstellt am 1. Juli 2011

15 Powerful jQuery Tips and Tricks for Developers

via Tutorialzine

In this article we will take a look at 15 jQuery techniques for your effective use of the library. We will start with a few … Read More >>

Interessanter Blog-Eintrag gefunden im Web mit dem Pulse News Reader fürs iPad

VN:F [1.9.10_1130]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.10_1130]
Rating: 0 (from 0 votes)

Erstellt am 10. Juni 2011

yepnope.js | A Conditional Loader For Your Polyfills!

yepnope is an asynchronous conditional resource loader that’s super-fast, and allows you to load only the scripts that your users need.

I really have to check this out!

Interessanter Blog-Eintrag gefunden im Web mit dem Pulse News Reader fürs iPad

VN:F [1.9.10_1130]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.10_1130]
Rating: 0 (from 0 votes)