View Single Post
Old 11-05-2012, 03:08 PM   PM User | #2
coothead
Senior Coder

 
coothead's Avatar
 
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,555
Thanks: 0
Thanked 196 Times in 192 Posts
coothead will become famous soon enough
Hi there backa,

and a warm welcome to these forums.

does this help...
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="language" content="english"> 
<meta http-equiv="Content-Style-Type" content="text/css">

<title>animated text</title>

<style type="text/css">
#animated-text {
    margin-left:250px;
    font-size:200%;
    -moz-animation-duration:3s;
    -moz-animation-name:slidein;
    -webkit-animation-duration:3s;
    -webkit-animation-name:slidein;
    -o-animation-duration:3s;
    -o-animation-name:slidein;
 }
@-moz-keyframes slidein {
from {
    margin-left:-50px;
    opacity:0;
    font-size:10%;
 } 
to {
    margin-left:250px;
    opacity:1;
    font-size:200%;
  }
 }
@-webkit-keyframes slidein {
from {
    margin-left:-50px;
    opacity:0;
    font-size:10%;
 } 
to {
    margin-left:250px;
    opacity:1;
    font-size:200%;
  }
 }
@-o-keyframes slidein {
from {
    margin-left:-50px;
    opacity:0;
    font-size:10%;
 } 
to {
    margin-left:250px;
    opacity:1;
    font-size:200%;
  }
 }
</style>

</head>
<body>

<div>
 <span id="animated-text">animated text</span>
</div>

</body>
</html>
coothead
coothead is offline   Reply With Quote
Users who have thanked coothead for this post:
backa (11-06-2012)