Skip to content

aa-ree/self-clip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<self-clip> element

A icon customzation allows you to play with.

I was watching web component recently, learning about <template>, shadow DOM, Custom Elements, HTML imports. So I decided create a web component, but not using any polyfills. So, <self-clip> is rarely supported, it's able to run in which had implemented import attribute and registerElement function.

Usage

To use it, simply download the element.html that inside the component file.

Import to your html:
<link rel="import" href="element.html">
Use self-clip wherever you want:
<self-clip></self-clip>
Set data- attributes, you can generate online or checkout these usable options:
  • data-background: color (Hex)
  • data-hair: color (Hex)
  • data-cloth: color (Hex)
  • data-eyes: color (Hex)
  • data-config
    • hair
      • length
        • long
        • short
      • bang
        • left
        • right
        • none
    • sense
      • eyes
        • big
        • small
      • mouth
        • joy
        • shy
    • accessory
      • none
      • glass
      • earrings
You are good to go!

![Image of self-clip example] (https://reehoiyan.github.io/self-clip/assets/icons.png)

About

native web component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published