<script type="module" src="https://unpkg.com/pixel-yoshi-egg"></script>
Table of Contents
<!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>
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" |