Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Webkit examples CSS transforms CSS animations

Webkit examples CSS transforms CSS animations
Thread Tools
Moderator
Join Date: Sep 2000
Location: Irvine, CA
Status: Offline
Reply With Quote
Feb 8, 2008, 06:38 PM
 
I'm interested in learning more about these technologies. All I can find on the Surfing Safari blog is just his general comments about these technologies in Safari along with some links left by commenters with a few code samples and demonstrations. I was wondering where could I find a list of all available commands for CSS transforms and CSS animations and some possible demonstrations for each command. I'm interested in using CSS to do some stuff and I need the proper syntax in order to do so. Thanks.
{{{ mindwaves }}}
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Feb 8, 2008, 06:42 PM
 
I don't know if you've seen them, but these look pretty good to me:

Surfin’ Safari - Blog Archive � CSS Transforms
Surfin’ Safari - Blog Archive � CSS Animation

Note that these do not work in current versions of Safari as far as I am aware.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Moderator
Join Date: Sep 2000
Location: Irvine, CA
Status: Offline
Reply With Quote
Feb 8, 2008, 06:52 PM
 
Originally Posted by Chuckit View Post
I don't know if you've seen them, but these look pretty good to me:

Surfin’ Safari - Blog Archive � CSS Transforms
Surfin’ Safari - Blog Archive � CSS Animation

Note that these do not work in current versions of Safari as far as I am aware.
Thanks, but I've seen them before. Actually, that was what I was referring to. However, I'm more interested in seeing the full commands of both CSS transforms and CSS animations. Like all of the available commands unlike those links which just list 1-2.

These demos work in the latest nightly.
{{{ mindwaves }}}
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Feb 8, 2008, 07:00 PM
 
I didn't think there were more. Where did you hear there were?
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Moderator
Join Date: Sep 2000
Location: Irvine, CA
Status: Offline
Reply With Quote
Feb 8, 2008, 07:09 PM
 
I didn't. I just assumed that there were more and more examples somewhere.
{{{ mindwaves }}}
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Feb 8, 2008, 07:14 PM
 
I think that's pretty much it. It's just an experimental feature that was introduced in the WebKit nightlies. It will probably be expanded in the future (and hopefully someday standardized), but I believe those pages are pretty much the documentation at the moment.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Mac Elite
Join Date: Jul 2000
Location: Washington, DC
Status: Offline
Reply With Quote
Feb 9, 2008, 04:37 PM
 
For animation:

transition-property
Values: none | all | <property>
Initial Value: all
Description: Specifies what property triggers an animation. A value of none means there is no transition. A value of all means that every animatable property triggers an animation. Otherwise an animation will only trigger when the exact specified property changes value.

transition-duration
Values: <time>
Inital Value: 0
Description: Specifies how long the transition should take. The default is 0.

transition-timing-function
Values: default | linear | ease-in | ease-out | ease-in-out | cubic-bezier(x1, y1, x2, y2)
Initial Value: default
Description: The transition-timing-function property describes how the animation will proceed over time. Keywords can be used for common functions or the control points for a cubic bezier function can be given for complete control of the transition function. To specify a cubic bezier function, you give an X and Y values for 2 of the control points of the curve. Point P0 is implicitly set to (0,0) and P3 is implicitly set to (1,1). These 4 points are used to compute a cubic bezier curve.

The timing function keywords have the following definitions:
linear - The linear function just returns as its output the input that it received.
default - The default function is equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).
ease-in - The ease-in function is equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).
ease-out - The ease-out function is equivalent to cubic-bezier(0, 0, 0.58, 1.0).
ease-in-out - The ease-in-out function is equivalent to cubic-bezier(0.42, 0, 0.58, 1.0)
cubic-bezier - Specifies a cubic-bezier curve whose P0 and P3 points are (0,0) and (1,1) respectively. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).

How did it come to this? Goodbye PowerPC. | sensory output
     
Mac Elite
Join Date: Jan 2001
Location: Helsinki, Finland
Status: Offline
Reply With Quote
Mar 7, 2008, 03:28 PM
 
One of the videos at iPhone Dev Center (Updated) titled 'iPhone SDK for Web Developers' goes into some detail regarding these.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:37 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2