You can achieve this in atleast two ways that I can think of:
1. Insert 3D-Objects in a webpage using HTML5 and CSS only
2. Insert 3D-Objects in a webpage using jQuery plugin
Depends on the usecase, ease and your comfort.
1. For HTML & CSS, you would need HTML5 Canvas and then translate it using JavaScript,
example[
^]:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Rotate an ASP.NET Image Control using HTML 5 Canvas by DotNetCurry.com</title>
<script type="text/javascript">
window.onload = function () {
var canvas = document.getElementById("myCanvas");
var context = canvas.getContext("2d");
var imgID = '<%= Image1.ClientID %>';
var imgObject = document.getElementById(imgID);
var imgWd = 200;
var imgHt = 200;
imgObject.onload = function () {
context.translate(canvas.width / 2, canvas.height / 2);
context.rotate(Math.PI * 45 / 180);
context.drawImage(this, -(imgWd / 2), -(imgHt / 2), imgWd, imgHt);
};
imgObject.src = "images/baby.jpg";
};
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Image ID="Image1" runat="server"
style="display:none" />
<canvas id="myCanvas" width="400" height="400"
style="border:1px solid black;">
Your browser does not support the Canvas Element
</canvas>
</div>
</form>
</body>
</html>
2. For jQuery plugin based approach,
example[
^]:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.interactive_3d.js"></script>
<div id="demo">
<img src="images/frame_1.png">
</div>
<script>
$(document).ready( function() {
$("#demo").interactive_3d({
frames: 38
});
});
</script>
<script>
$(document).ready( function() {
$("#demo").interactive_3d({
frames: 10,
cursor: "move",
speed: 0,
entrance: true,
preloadImages: true,
touchSupport: true,
loading: "Loading..",
autoPlay: false
});
});
</script>
There are more plugins that can do same/similar job. You need to look for based on your need.