Skip to content

Web Component#5

Open
SmallhillCZ wants to merge 1 commit intoyershalom:masterfrom
SmallhillCZ:web-component
Open

Web Component#5
SmallhillCZ wants to merge 1 commit intoyershalom:masterfrom
SmallhillCZ:web-component

Conversation

@SmallhillCZ
Copy link

@SmallhillCZ SmallhillCZ commented Feb 2, 2022

PR content

  • web component definition so that people could use your amazing css wordart as one tag <word-art/>
  • include the js and css in the npm package so that people could use CDN like jsdelivr to use the package
  • gulpfile to take the component definition and fill it with the current CSS style
  • index.html to test the web component

Motivation

My original motivation was to use the package in Angular so I have created an Angular binging (https://github.com/SmallhillCZ/angular-wordart) but then I realized why have React, Vue and Angular bindings, when you can use a simple Web Component which is cross compatible and can be simply used in any framework and also CMS.

Usage

Locally:

<script src="./css-wordart/js/wordart.js"></script>

<word-art theme="rainbow">WordArt Text</word-art>

JSDelivr CDN:

<script src="https://cdn.jsdelivr.net/npm/css-wordart/js/wordart.js"></script>

<word-art theme="rainbow">WordArt Text</word-art>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant