프로젝트
GitHub에서 보기
stefanjudis/sparkly-text
소개
A small web component for making your text spark.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalsparkly-text
A small zero-dependency Web Component to add sparkles to text fragments.
Examples
<!-- Add sparkles -->
<sparkly-text>Hello world</sparkly-text>
<!-- Increase the number of sparkles -->
<sparkly-text number-of-sparkles="5">Hello world</sparkly-text>
<!-- Color the sparkles -->
<sparkly-text style="--sparkly-text-color: orange">Hello world</sparkly-text>
<!-- Add rainbow colors -->
<sparkly-text style="--sparkly-text-color: rainbow">Hello world</sparkly-text>
<!-- Increase the sparkle size -->
<sparkly-text style="--sparkly-text-size: 2.5em">Hello world</sparkly-text>
Installation
You have a few options (choose one of these):
- Install via npm: npm install @stefanjudis/sparkly-text
- Download the source manually from GitHub into your project.
- Skip this step and use the script directly via a 3rd party CDN (not recommended for production use)
Usage
<!-- Host yourself -->
<script type="module" src="sparkly-text.js"></script>
<!-- 3rd party CDN, not recommended for production use -->
<script
type="module"
src="https://www.unpkg.com/@stefanjudis/sparkly-text"
></script>
<!-- 3rd party CDN, not recommended for production use -->
<script type="module" src="https://esm.sh/@stefanjudis/sparkly-text"></script>
Kudos
Big thanks goes to Zach Leatherman for all his fancy components such as table-saw.
관련 프로젝트 살펴보기
불러오는 중…