-
Notifications
You must be signed in to change notification settings - Fork 5
Authoring Transitions
segdeha edited this page Jun 20, 2011
·
4 revisions
The behavior of transitions from one slide to another are specified in CSS. You specify the transition you want by putting a classname on the body tag.
Slides have 2 states: showing and hidden. By default, a slide is showing. Adding the ‘hidden’ class to it will transition it out. Removing the ‘hidden’ class will transition it in.
In the CSS:
.fade section { /* at rest state */ opactiy: 1; -webkit-transition: opacity 0.75s; } .fade section.hidden { /* transition or animation to remove the current slide */ opacity: 0; }
- Apple documentation on WebKit transitions
- Apple documentation on WebKit animations