Custom input Tag with svg animation and label and placeholder animation.
Add the Vue.js library to the HTML file.
<script src="https://unpkg.com/vue"></script>
Include the idex-custom-input script. Download the script from here.
<script src="./idex-custom-input.js"></script>
<idex-custom-input></idex-custom-input>
- type
- text
- password
- number
- button
- message
- label
- height
- width
<idex-custom-input type="text" label="label" width="500"></idex-custom-input>
<meta charset="utf-8">
<title>idex-custom-input demo</title>
<script src="https://unpkg.com/vue"></script>
<script src="./idex-custom-input.js"></script>
<idex-custom-input type="text" label="Name"></idex-custom-input>
<idex-custom-input type="email" label="E-mail" width="250"></idex-custom-input>
<idex-custom-input type="password" label="Password" width="250"></idex-custom-input>
<idex-custom-input type="message" label="Message" height="200" width="350"></idex-custom-input>
<idex-custom-input type="button">Button</idex-custom-input>
See this example here
Modify this example in JSFiddle.
This Web component uses the define()
method of the CustomElementRegistry
interface to define the web component. The compatibility of this method is shown here.