1.1.2 • Published 3 years ago
pixel-yoshi-egg v1.1.2
How to use
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Yoshi Egg</title>
<!--- Import --->
<script type="module" src="https://unpkg.com/pixel-yoshi-egg"></script>
</head>
<body>
<!--- Use the webcomponent --->
<yoshi-egg color="red" scale="10" metric="px"></yoshi-egg>
</body>
</html>Properties
| Name | Type | Description | Default |
|---|---|---|---|
| color | string | Egg color. | "green" |
| scale | number | Scale to change the size of the egg. | 0.7 |
| metric | string | Unit CSS (px, rem, ...). | "rem" |