All Projects → sparanoid → cube.less

sparanoid / cube.less

Licence: MIT license
3D (animated) cube using only CSS (Less), originally used by LeanCloud (aka. AVOS Cloud)

Programming Languages

CSS
56736 projects
coffeescript
4710 projects

Labels

Projects that are alternatives of or similar to cube.less

Reset Css
An unmodified* copy of Eric Meyer's CSS reset. PostCSS, webpack, Sass, and Less friendly.
Stars: ✭ 244 (+351.85%)
Mutual labels:  less
vue-node-mongodb-blog
vue + node + mongodb + webpack5 + koa2 从开发到上线搭建一款简约的个人博客系统(前后端分离)
Stars: ✭ 44 (-18.52%)
Mutual labels:  less
adfab-gulp-boilerplate
A boilerplate including Gulp, Less/SASS, BrowserSync.
Stars: ✭ 17 (-68.52%)
Mutual labels:  less
Material Colors
Colors of Google's Material Design made available to coders
Stars: ✭ 252 (+366.67%)
Mutual labels:  less
erupt-web
Erupt 框架前端源码,实现了 erupt 开发过程中零前端代码能力
Stars: ✭ 82 (+51.85%)
Mutual labels:  less
nextjs-antd-custom
This project we created a simple project with Nextjs and use Ant Design for CSS components and also deploy that with Now.sh
Stars: ✭ 28 (-48.15%)
Mutual labels:  less
Ant Design Aliyun Theme
⚙ Ant Design Theme for console.aliyun.com
Stars: ✭ 237 (+338.89%)
Mutual labels:  less
next-plugin-antd
A @zeit/next-less patch with full support for Ant Design, Less and CSS modules
Stars: ✭ 27 (-50%)
Mutual labels:  less
website
Website source for Jikan.moe
Stars: ✭ 28 (-48.15%)
Mutual labels:  less
magento-2-gulp
Gulp for Magento 2. It works with core Magento styles (less) and structure. Uses default theme configs from dev/tools/grunt/configs/local-themes.js.
Stars: ✭ 37 (-31.48%)
Mutual labels:  less
Vue Cli4 Vant
基于vue-cli4和vant搭建的移动端开发模板
Stars: ✭ 253 (+368.52%)
Mutual labels:  less
bioSyntax-archive
Syntax highlighting for computational biology
Stars: ✭ 16 (-70.37%)
Mutual labels:  less
csslab
用于快速进行页面重构的CSS函数库
Stars: ✭ 19 (-64.81%)
Mutual labels:  less
A Journey Toward Better Style
A Journey toward better style
Stars: ✭ 245 (+353.7%)
Mutual labels:  less
vite-plugin-theme-preprocessor
css theme preprocessor plugin for vite
Stars: ✭ 144 (+166.67%)
Mutual labels:  less
Prejss
Get the power of PostCSS with plugins in your JSS styles. 🎨 Just put CSS into JS and get it as JSS object.
Stars: ✭ 238 (+340.74%)
Mutual labels:  less
css-reset-and-normalize
A combination of css reset and normalize (available in CSS, SCSS, Stylus and LESS).
Stars: ✭ 20 (-62.96%)
Mutual labels:  less
quickstart-miniprogram
🎉微信小程序webpack模板
Stars: ✭ 32 (-40.74%)
Mutual labels:  less
strapless
Strapless is a color-changing CSS boilerplate for HTML elements, and a powerful LessCSS library for colors and patterns.
Stars: ✭ 27 (-50%)
Mutual labels:  less
webpack-Vue-vueRouter
通过webpack打包工具以及Vue和Vue-router实现一个公司官方网站的搭建
Stars: ✭ 21 (-61.11%)
Mutual labels:  less

cube.less

Build Status devDependency Status

3D (animated) cube using only CSS (LESS).

Demo

See this demo page. There's also a live production site (WIP) using these cubes.

Install

$ bower install cube.less

Options

Mixins

.makecube

Main mixin, it has the following options:

@size

Default: 100px

The length of a cube side.

@depth

Default: 50px

Cube depth alone the Z-axis.

@rotate-x

Default: 0deg

Rotate the cube along the X-axis.

@rotate-y

Default: 0deg

Rotate the cube along the Y-axis.

@rotate-z

Default: 0deg

Rotate the cube along the Z-axis.

.makeperspective

@perspective

Default: 2500

Make canvas perspective to parent element.

Additional Classes

.cube-border

No cube background, like ouline vision. apply it to cube container.

.cube-borderless

No outline, apply it to cube container.

.cube-unselectable

Make all cubes unselectable, apply it to cube parent wrapper, or specific cube. Both are ok.

Setup

The following is a basic markup:

...
<div class="cube-perspective">
  <span class="cube cube-01"><i></i><i></i><i></i><i></i><i></i><i></i></span>
  <span class="cube cube-02 cube-border"><i></i><i></i><i></i><i></i><i></i><i></i></span>
  <span class="cube cube-03 cube-borderless"><i></i><i></i><i></i><i></i><i></i><i></i></span>
  <span class="cube cube-04"><i></i><i></i><i></i><i></i><i></i><i></i></span>
</div>
...

Animation

See demo.

Dev Setup

npm install && grunt server

Author

Tunghsiao Liu

Licenses

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].