0.0.8 • Published 6 years ago
ae-picturetoggle v0.0.8
Stencil Component Test
This component toggles two images.
Using this component
Folder structure / image files needed
- on the root folder where your index.html is create a folder named assets
- inside this assets folder create a folder named img
- inside this img folder place two images (name them image1.jpg and image2.jpg)
Script tag
- Put this script tag in the head of your index.html:
<script src='https://unpkg.com/ae-picturetoggle@0.0.8/dist/aepicturetoggle.js'></script>
tag to use in your index.html:
<ae-picturetoggle w="600" h="300" t="go!"></ae-picturetoggle>
- w = display widh of the image / h = display height of the image / t = toggle button text