有没有办法在 CSS 中创建画布元素的 3D 圆柱体? [英] Is there a way to create a 3D cylinder of the canvas element in CSS?

查看:49
本文介绍了有没有办法在 CSS 中创建画布元素的 3D 圆柱体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将画布呈现为一个圆柱体,您可以像轮子一样向两个方向旋转.使用 JS/CSS3 可以实现吗?

I'd like to present the canvas as a cylindrical cone, which you can spin like a wheel in both directions. Is this at all possible with JS/CSS3?

推荐答案

HTML-Canvas 在实际状态下只有 2D,但 ThreeJS 框架似乎是在画布元素中进行 3d 渲染的一个很好的解决方案.

The HTML-Canvas is in the actual state only 2D, but the ThreeJS framework seems to be a pretty good solution for 3d-rendering within the canvas-element.

这篇关于有没有办法在 CSS 中创建画布元素的 3D 圆柱体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆