Code in Full - J. Albert Bowden II

  • Archive
  • RSS

Kevin Urrutia: Creating CSS3 moving circles

kevinurrutia:

Source: kevinurrutia

    • #CSS3
    • #CSS Animations
    • #CSS Shapes
  • 1 month ago > kevinurrutia
  • 5
  • Permalink
  • Share
    Tweet

Martian Wabbit Productions: JustVector Social Icons Font

seich:

I’ve been pretty bored lately, so I decided to redesign my site and found an awesome social icon set by Alex Peattie (http://www.alexpeattie.com) to go with the new design. The set is minimalistic and really cool! Unfortunately, I wasn’t as happy to work with it as I would have liked to…

Source: seich

    • #Just Vector Social Icons Font
    • #Icons
    • #Typography
    • #@font-face
    • #css3
  • 4 months ago > seich
  • 42
  • Permalink
  • Share
    Tweet

atomoco:

GPU memory management with hardware accelerated CSS transitions.

See that? That’s the difference that GPU hardware acceleration of CSS transitions can make on an iOS device. If you don’t know what CSS transitions are, you might want to stop reading now.

For those that are left, I won’t bore you with how CSS transitions can provide basic animations, or how they can be GPU hardware accelerated on iOS devices, which can make an incredibly low-powered platform like an iPad offer smoother animation than big desktops running javascript.

Instead I’ll run through how Bardot currently does the “next page” trick, and how I’m trying to improve it.

As a caveat, I’m just imparting what I’ve learnt through trial, error and Google - I wouldn’t count myself as an expert on this.

Bardot is built in “pages” and “spreads”. Pages are… er, pretty self explanatory, and spreads are the equivalent of opening a magazine spread (ie two or more pages facing each other). Bardot actually has three piles of spreads *, at any one time you see only one spread on-screen - in the “viewport”. Either side of the viewport are two other piles, and when you hit the “next page” button, the piles all shuffle along one direction or the other.

The mechanism for doing this on most modern browsers is simplicity itself. Spreads in each pile have a particular class (“.read”, “.active”, “.unread”) and to move them around means changing their class via javascript, CSS transitions and transforms do the rest for you. As an aside, that makes quick changes to the animation a doddle (Make it quicker? Tweak the CSS style. Add a 3D flip out movement? Tweak the CSS style).

That all looks fine on desktop browsers, but iOS devices need a bit more help. They’ve got pretty limited processing power, and extremely limited memory, which often ends up with low frame-rates, sudden disappearances, or giving the “tiling” effect you see in the video above. This is especially true when you’re creating something off-screen, then moving it into view (like we are here), because mobile devices are optimised to only deal with on-screen pixels to keep them lean and mean.

To get around that, we can hand off the “compositing” of certain elements to the 3D GPU chip in the iPad or iPhone, which is way more adept at flinging tiles around a screen. You can move an element to the GPU by adding a 3D CSS style to an object (some use “-webkit-transform:translateZ(0)”, others use “-webkit-transform:scale3d(1)”)

In the case of Bardot, I created a style class called “.zippy” with a transform of “translateZ(0)”. When a page-forward event occurs, the top of the “.unread” pile is changed to a class of “.active.zippy”, and the retreating spread is given a class of “.read.zippy”. So “.read” and “.active” are the classes that determine where the spreads move to, and “.zippy” is the class that adds a sprinkling of acceleration.

The question begs: “So why don’t we hand everything off to the GPU with 3D CSS?”. Well, the GPU is also really limited in the amount of memory it can handle, and the more you stuff into it, the more it stutters and you’re back to where you started. In Bardot, one of those spreads could be thousands of pixels in size, it doesn’t take many of those to really bung up a GPU.

The trick is memory management. In Bardot, only the “.zippy” spreads are hardware accelerated, and once a spread is moved off-page, the “.zippy” class is removed to reduce the load on the GPU.

The result is buttery smooth animations in both directions. Simples.

* Note:  I’ve tried building systems with a long continuous “conveyor belt” of pages in the past, and although the theory behind that is cleaner (moving a huge track of pages past the viewport), I find working in three piles is easier to manage, especially when you get into dealing with layouts that are many spreads long. A track would becomes tens thousands of pixels wide and you have to deal with big margin offset numbers. Not pretty.

Source: atomoco

    • #CSS Transitions
    • #CSS3
    • #Hardware Acceleration
    • #WebKit
    • #GPU Memory Management
  • 4 months ago > atomoco
  • 4
  • Permalink
  • Share
    Tweet
 
Playing with matrices is a tool for generating a CSS Matrix.
View Separately

CSS Matrix Generator - Playing with matrices

Playing with matrices is a tool for generating a CSS Matrix.

Source: peterned.home.xs4all.nl

    • #CSS Matrix
    • #CSS Generator
    • #CSS3
    • #in browser
    • #toolkit
  • 4 months ago
  • 2
  • Permalink
  • Share
    Tweet

Fontdeck Blog: Using OpenType font features with CSS 3: Part 1

fontdeck:

The vast majority of fonts contain lowercase and uppercase alphabets, numerals, punctuation and accents. But there can be much more to fonts than this basic set of characters. Many professionally-designed fonts also contain ligatures, alternative characters, smallcaps, different kinds of numbers,…

Source: fontdeck

    • #CSS3
    • #Typography
    • #Fonts
    • #OpenType
  • 4 months ago > fontdeck
  • 169
  • Permalink
  • Share
    Tweet
ninedaysoff:

CSS Transition Timing FunctionsThis article follows on from the related article on Animation using CSS Transforms and  investigates the transition-duration and  transition-timing-function properties which control,  respectively, the duration and speed at which a transition is carried  out.
via: decodering
Pop-upView Separately

ninedaysoff:

CSS Transition Timing Functions
This article follows on from the related article on Animation using CSS Transforms and investigates the transition-duration and transition-timing-function properties which control, respectively, the duration and speed at which a transition is carried out.

via: decodering

Source: decodering

    • #CSS3
    • #CSS-Transitions
    • #CSS-Animations
    • #CSS-Transforms
    • #Transition Timing Functions
    • #Bézier Curves
    • #Cubic Bézier Curves
  • 5 months ago > decodering
  • 629
  • Permalink
  • Share
    Tweet

WebKitBits: Customizable Themes with CSS3 and -webkit-mask

We recently released a new product that allows you to quickly build out a mobile site for your web site. There were a bunch of great features available in WebKit’s implementation of CSS3 but there were two standout features I really wanted to cover.

First, we wanted to create a tab menu button…

Source: webkitbits

    • #WebKit
    • #CSS3
    • #Safari CSS Visual Effects Guide
    • #-webkit-mask
    • #-webkit-gradient
  • 5 months ago > webkitbits
  • 126
  • Permalink
  • Share
    Tweet

CSS3 Button Generator
View Separately

CSS3 Button Generator

CSS3 Button Generator

Source: css3button.net

    • #CSS3
    • #Generator
    • #CSS Buttons
  • 5 months ago
  • 5
  • Permalink
  • Share
    Tweet

Bricss: The CSS profilers are coming!

bricss:

Back in August I talked about the lack of benchmarks or performance tools for CSS. In the meantime, the fine folk we call browser makers have been working hard on new developer tools to do just that: measure CSS performance. First the Opera team showed off their upcoming style profiler, and…

Source: bricss

    • #css-profilers
    • #css
    • #css3
  • 5 months ago > bricss
  • 43
  • Permalink
  • Share
    Tweet
AliceJS - (A Lightweight Independent CSS Engine) is a micro JavaScript library focused on using hardware-accelerated capabilities (in particular CSS3 features) in modern browsers for generating high-quality, high-end visual effects.
View Separately

AliceJS - (A Lightweight Independent CSS Engine) is a micro JavaScript library focused on using hardware-accelerated capabilities (in particular CSS3 features) in modern browsers for generating high-quality, high-end visual effects.

Source: blackberry.github.com

    • #Alice.js
    • #JavaScript
    • #CSS3
    • #Mobile
    • #Blackberry
    • #JavaScript Library
  • 7 months ago
  • 13
  • Permalink
  • Share
    Tweet

Basic Tumblr theme based on HTML5 Boilerplate and Microformats

frozenminds-com:

Fork

A very basic HTML5 boilerplate template for building custom Tumblr themes.

Building upon the great work already done by HTML5 Boilerplate 2.0.

The theme also incorporates Microformats:

  • hAtom
  • hCard

More info on building Tumblr themese can be found at:

  • http://www.tumblr.com/docs/custom_themes
  • http://www.tumblr.com/docs/localizing_themes

This is an update to the started project Tumblr-HTML5-Boilerplate by Ed Rooth.

Source: frozenminds-com

    • #tumblr
    • #html5boilerplate
    • #html5 boilerplate
    • #boilerplate
    • #html5
    • #css3
    • #microformats
    • #hcard
    • #vcard
    • #hatom
    • #theme
    • #template
    • #tumblr theme
    • #tumblr template
    • #frozenminds
    • #github
    • #fork
    • #project
    • #fork on github
  • 8 months ago > frozenminds-com
  • 65
  • Permalink
  • Share
    Tweet

destroy/dstorey: The makeup of the Open Web stack

dstorey:

The Open Web has never had as many capabilities as it has today. We’re seeing an explosion in new or updated specifications, and prototype and stable implementations to go with them. This blog post will look back as the platform we have had available (Called Open Web 0 here) and then looks forward…

Source: dstorey

    • #html5
    • #css3
    • #javascript
    • #svg
    • #canvas
    • #webgl
    • #device apis
    • #open web
  • 8 months ago > dstorey
  • 155
  • Permalink
  • Share
    Tweet

Full Fucking Service: Reckless web development practices are encouraging idiots

fullfuckingservice:

Or, how content is suffering because of lazy people who don’t understand that a strong web relies on addressable content with access to all.

Reckless web development practices are encouraging idiots and prolonging the cycle of ignorance in front-end development and its associated industries.…

Source: fullfuckingservice

    • #amazing
    • #browsers
    • #css3
    • #html5
    • #javascript
    • #progressiveenhancement
    • #posh
  • 8 months ago > fullfuckingservice
  • 263
  • Permalink
  • Share
    Tweet
simurai:

I ♥ BLUR - Once again, I got distracted experimenting with CSS3. ;-) So far I just knew how to make text look blurry by adding a lot of text-shadows like in this example by David. But it’s more a glow, because the text still stays in front. But what if you wanna turn text into smoke? Luckily you can set the text-fill-color to transparent and that gives your text a really nice smoky blur.
color: transparent;text-shadow: #fff 0 0 100px;
That’s it! And if you animate it, it get’s even sexier.
See the Demo →
Update: Ohh.. snap. Some friendly people on twitter pointed out that there is actually an even simpler way to create Text Blur. So before this get’s too embarrassing, I quickly should change the code above. ;-) By using just color instead of -webkit-text-fill-color it also works in Firefox (although the blur looks a bit stronger). Thanks for telling.
View Separately

simurai:

I ♥ BLUR - Once again, I got distracted experimenting with CSS3. ;-) So far I just knew how to make text look blurry by adding a lot of text-shadows like in this example by David. But it’s more a glow, because the text still stays in front. But what if you wanna turn text into smoke? Luckily you can set the text-fill-color to transparent and that gives your text a really nice smoky blur.

color: transparent;
text-shadow: #fff 0 0 100px;

That’s it! And if you animate it, it get’s even sexier.

See the Demo →

Update: Ohh.. snap. Some friendly people on twitter pointed out that there is actually an even simpler way to create Text Blur. So before this get’s too embarrassing, I quickly should change the code above. ;-) By using just color instead of -webkit-text-fill-color it also works in Firefox (although the blur looks a bit stronger). Thanks for telling.

Source: simurai

    • #lab
    • #CSS3
  • 9 months ago > simurai
  • 322
  • Permalink
  • Share
    Tweet
simurai:

CSS3D creates a stereoscopic 3D effect with CSS3 only. First I just created this red and cyan effect because I thought it looks cool. But then I got some 3D glasses and was shocked that it actually works. Basically you just need one line of CSS. A text-shadow with a red and cyan offset. The trick is to use “em“s for the text-shadows. That way, if you change the font-size, the text-shadows change in the same proportion.
text-shadow: -0.06em 0 red, 0.06em 0 cyan;
See the Demo →
Note: Actually you are not limited to text only. You can use the same technique with box-shadows. It even works when you add some of webkit’s 3D transforms like rotateY.
Update: Wow! I submitted this to Smashing Magazine’s CSS3 Design Contest and it made it on 3rd place, which makes me incredible happy. Thanks!
For comments please use twitter.
View Separately

simurai:

CSS3D creates a stereoscopic 3D effect with CSS3 only. First I just created this red and cyan effect because I thought it looks cool. But then I got some 3D glasses and was shocked that it actually works. Basically you just need one line of CSS. A text-shadow with a red and cyan offset. The trick is to use “em“s for the text-shadows. That way, if you change the font-size, the text-shadows change in the same proportion.

text-shadow: -0.06em 0 red, 0.06em 0 cyan;

See the Demo →

Note: Actually you are not limited to text only. You can use the same technique with box-shadows. It even works when you add some of webkit’s 3D transforms like rotateY.

Update: Wow! I submitted this to Smashing Magazine’s CSS3 Design Contest and it made it on 3rd place, which makes me incredible happy. Thanks!

For comments please use twitter.

Source: simurai

    • #lab
    • #CSS3
    • #CSS
  • 9 months ago > simurai
  • 1119
  • Permalink
  • Share
    Tweet
← Newer • Older →
Page 1 of 2

About

http://bowdenweb.com/wp/

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr