Go to file
yuanchuan 52c3b9ab1b remove samples 2017-02-27 13:47:25 +08:00
screenshot update code samples 2017-02-25 18:51:40 +08:00
src fix iterator ending 2017-02-26 23:16:21 +08:00
.gitignore add package.json 2017-02-24 19:04:06 +08:00
LICENSE ship 2017-02-24 17:55:07 +08:00
README.md update code samples 2017-02-25 18:51:40 +08:00
css-doodle.js updgrade rollup and remove makefile 2017-02-27 11:39:37 +08:00
package.json updgrade rollup and remove makefile 2017-02-27 11:39:37 +08:00

README.md

css-doodle (wip)

A web component for drawing patterns with css.

circles

Example

include css-doodle.js in your html:

<script src="./css-doodle.js"></script>

drawing the above circles with css:

<css-doodle grid="6">
  :doodle {
    width: 50vh;
    height: 50vh;
    border-radius: 50%;
    overflow: hidden;
    background: #fafff1;
  }

  --size: @rand(200%);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: hsla(
    @rand(360), 80%, 50%, @rand(.8)
  );
</css-doodle>