diedVIPs

html knowhow

Bild rotiert permanent










Bild dreht sich permanent

Das Bild dreht sich permanent in alle Richtungen

So sieht´s aus


meinsolargarten





Quellcode
<html>
<head>

<script>
<!--
var x,y,n=0,ny=0,rotINT,rotYINT
function rotateDIV()
{
x=document.getElementById("rotate2D")
clearInterval(rotINT)
rotINT=setInterval("startRotate()",1)
}
function startRotate()
{
n=n+1
x.style.transform="rotate(" + n + "deg)"
x.style.webkitTransform="rotate(" + n + "deg)"
x.style.OTransform="rotate(" + n + "deg)"
x.style.MozTransform="rotate(" + n + "deg)"
if (n==360 || n==360)
{
clearInterval(rotINT)
if (n==360){n=0}
}
}
//-->
</script>

<style type="text/css">
#myDIV { animation: mymove 5s infinite; }
@keyframes mymove { 50% {transform: rotate(180deg);} }
.looper { animation: perspect 4s infinite linear }
@keyframes perspect {
0% {transform:perspective(300px) rotateY(0deg)}
25% {transform:perspective(300px) rotateY(90deg)}
50% {transform:perspective(300px) rotateY(180deg)}
75% {transform:perspective(300px) rotateY(270deg)}
100% {transform:perspective(300px) rotateY(360deg)} }
</style>
</head>

<body >
<div id="myDIV"><img alt="meinsolargarten" class="auto-style24" id="looper" src="../Bilder/W-MSG.jpg" style="height: auto" width="15%" /></div>
</body>

</html>







Kontakt    Datenschutz    Impressum