3dcss
Dependency free micro-library to deal with 3D CSS.
Install / Use
/learn @meodai/3dcssREADME
3dcss
Dependency free micro-library to deal with 3D CSS. Demo
Why?
Places and manipulates html elements in a 3D space. I know of three.js and I love it, but sometimes I just want to enhance the elements that are already styled with some 3D.
Quickstart
Installation
Install it with NPM (npm install 3dcss --save) or Bower (npm install bower --save) or just get the last release.
Usage
The only thing you need is to have a "world" or "camera". You can do this by setting the perspective on the element that will contain your 3d objects.
.world {
perspective: 1200px;
}
Every element that will be inside .world can be instantiated with Css3d
<div class='world'>
<div id="threedee"></div>
</div>
<script>
var obj3d = new Css3d(document.getElementById('threedee'));
obj3d.set('position', 20, 40, 50)
.setAttr('rotation', 'z', '-100')
.applyStyle();
</script>
see this example
Related Skills
node-connect
354.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
