Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web Component #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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