W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2009

[whatwg] <model/>: A 3D Equivalent to <img/>

From: Brian Blakely <anewpage.media@gmail.com>
Date: Mon, 2 Nov 2009 19:41:20 -0500
Message-ID: <d7e38f950911021641w3a78d20ci471fee797e9b053f@mail.gmail.com>
Spinning Cube Example

Integrating 3D Media Type with Current Techniques
-----------------------------------------------------------------------
(note: the only significant difference between this and
currently implemented technology is the media type
and additional CSS properties suited specifically for
3D presentation)

<style>

    * Static presentation for cube

</style>

<model id="cube" src="cube.xml" />

<script>

var cube = document.getElementById('cube');
var rotDegree = 0;

var rotation = setInterval(function() {
    cube.style.WebkitTransform = "rotateY("+rotDegree+"deg)";
    cube.style.MozTransform = "rotateY("+rotDegree+"deg)";
    rotDegree+=15;
    if(rotDegree === 360) {
        rotDegree = 0;
    }
}, 20);

</script>
Received on Monday, 2 November 2009 16:41:20 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:18 UTC