Go to file
yuanchuan b98a7c7b8c update code samples 2017-02-25 18:51:40 +08:00
samples update code samples 2017-02-25 18:51:40 +08:00
screenshot update code samples 2017-02-25 18:51:40 +08:00
src remove multiple next() 2017-02-25 09:28:53 +08:00
.gitignore add package.json 2017-02-24 19:04:06 +08:00
LICENSE ship 2017-02-24 17:55:07 +08:00
Makefile 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 remove multiple next() 2017-02-25 09:28:53 +08:00
package.json add package.json 2017-02-24 19:04:06 +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>