SMIL Transitions
Transitions can generate effects like "fading" and "wiping" to elements.
Transitions in SMIL 2.0
Transitions are new in SMIL 2.0. Transitions are not a part of the SMIL 1.0 specification.
IE 6 support transitions based on the SMIL 2.0 specification.
Transitions are implemented with the element transitionfilter.
Attributes
The <transitionfilter> tag can have several attributes. The most common are:
| Attribute |
Description |
Example |
| type |
Defines the type of transition filter (see transition filter list) |
type="clockWipe" |
| begin |
Defines when the transition should begin |
begin="0s" |
| mode |
Defines the transition mode |
mode="in" |
| from |
Defines the starting value of the transition |
from="0.2" |
| to |
Defines the ending value of the transition |
to="0.8" |
Transition Filters
The following transition filters can be used:
|
fade, barnDoorWipe, barWipe, clockWipe, ellipseWipe, fanWipe, irisWipe, pushWipe, slideWipe, snakeWipe, spiralWipe, starWipe |
Displaying Transitions
In the example below the image will be displayed for 4 seconds. The transition filter will use 2 second to "clockWipe" the image into its place.
Example
<html xmlns:t="urn:schemas-microsoft-com:time">
<head>
<?import namespace="t" implementation="#default#time2">
<style>.t {behavior: url(#default#time2)}</style>
</head>
<body>
<t:transitionfilter targetelement="keyb"
type="clockWipe"
begin="keyb.begin" dur="2s" />
<img id="keyb" class="t" src="pic_keyb.jpg" dur="4s"
width="128" height="107" />
</body>
</html> |
Try it yourself »
|
Make your web applications look like a million bucks
|
|
Most web applications today use boring methods to present data to their viewers using grids or simple HTML tables. FusionCharts induces "life" into the web applications by converting monotonous data into lively charts, gauges & maps.
FusionCharts works with all technologies like ASP, ASP.NET, PHP, ColdFusion, Ruby on Rails, JSP, HTML pages etc.
and connects to any database to render animated & interactive charts. It takes less than 15 minutes and no expertise
whatsoever to build your first chart and just a glance of it to captivate your audience. This fact is endorsed by our
12,000 customers and 150,000 users which include a majority of the Fortune 500 companies.
And yeah, your applications could look like a million bucks by spending just $69.
So go ahead, download your
copy of FusionCharts and start "wow-ing" your customers now!
|
 |
W3Schools' Online Certification Program
The perfect solution for professionals who need to balance work, family, and career building.
More than 4000 certificates already issued!
|
The HTML Certificate documents your knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
|