Professional Documents
Culture Documents
<!DOCTYPE html>
<html>
<head>
<style>
div
width:100px;
height:100px;
background:red;
animation:anim 5s;
@-webkit-keyframes anim
0% {background:red;}
25% {background:yellow;}
50% {background:blue;}
100% {background:green;}
/* Standard syntax */
@keyframes anim
0% {background:red;}
25% {background:yellow;}
50% {background:blue;}
100% {background:green;}
}
</style>
</head>
<body>
<div>text
</div>
</body>
</html>
EXEMPLU 2.
<html><head><style>
@-webkit-keyframes spincube {
from,to { }
@-moz-keyframes spincube {
33% to { }
ms-keyframes spincube {
from,to { }
.cubespinner {
webkit-animation-name: spincube;
webkit-animation-timing-function: ease-in-out;
webkit-animation-iteration-count: infinite;
webkit-animation-duration: 12s;
webkit-transform-style: preserve-3d;
moz-animation-name: spincube;
moz-animation-timing-function: ease-in-out;
moz-animation-iteration-count: infinite;
moz-animation-duration: 12s;
moz-transform-style: preserve-3d;
ms-animation-name: spincube;
ms-animation-timing-function: ease-in-out;
ms-animation-iteration-count: infinite;
ms-animation-duration: 12s;
ms-transform-style: preserve-3d;
.cubespinner div {
position: absolute;
width: 120px;
height: 120px;
background: rgba(255,255,255,0.8);
text-align: center;
font-size: 100px;
.cubespinner.face4 {
.cubespinner.face6 {
</style>
</head>
<body>
<div class="cubespinner">
<div class="face4">44</div>
<div class="face6">6</div>
</div>
</div>
</body>
</html>
EXEMPLUL 3.
<html>
<head>
<style>
body {
margin-top: 125px;
@-moz-keyframes spinningH {
from {
to{
@-webkit-keyframes spinningH {
from {
to{
@-o-keyframes spinningH {
from {
to{
@-ms-keyframes spinningH {
from {
to{
@keyframes spinningH {
from {
to{
}
#container {
-webkit-perspective : 1000px;
-moz-perspective : 1000px;
-o-perspective : 1000px;
-ms-perspective : 1000px;
perspective : 1000px;
.animate {
#cube {
position: relative;
margin: 0 auto;
height: 400px;
width: 400px;
-webkit-transition : -webkit-transform 2s linear;
-webkit-transform-style : preserve-3d;
-moz-transform-style : preserve-3d;
-o-transform-style : preserve-3d;
-ms-transform-style : preserve-3d;
transform-style : preserve-3d;
#cube>div {
position: absolute;
height: 360px;
width: 360px;
padding: 20px;
opacity: 0.9;
background-position:center center;
#cube div:nth-child(1) {
-webkit-transform : translateZ(200px);
-moz-transform : translateZ(200px);
-o-transform : translateZ(200px);
-ms-transform : translateZ(200px);
#cube div:nth-child(2) {
background-repeat : no-repeat;
#cube div:nth-child(3) {
#cube div:nth-child(4) {
background-color : #693C1F;
background-repeat : no-repeat;
}
#cube div:nth-child(5) {
background-color : #955122;
background-repeat :no-repeat;
#cube div:nth-child(6) {
background-color : #E34C26;
background-repeat :no-repeat;
text-align:center;
</style>
</head>
<body>
<div id="container">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</div>
</div>
</body>
</html>
EXEMPLUL 4.
<html><head><title>exemple html5</title></head>
<body>
</canvas>
<script>
var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
ctx.fillStyle="#FFF0000";
ctx.fillRect(80,100,120,50);
</script>
<form action="Meniu.html">
</body>
</html>