All Projects → SDuck4 → type-hangul

SDuck4 / type-hangul

Licence: MIT license
⌨️ 한글 타이핑 효과 라이브러리

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to type-hangul

amazfit-bip-kr
Amazfit Bip Korean Firmware and tools for making it
Stars: ✭ 34 (-57.5%)
Mutual labels:  korean, hangul
uck
숫자 -> 한글 단위 변환 모듈
Stars: ✭ 27 (-66.25%)
Mutual labels:  korean, hangul
kor-to-number.js
한글로 적힌 한국어 수사를 숫자로 변환하는 자바스크립트 라이브러리입니다.
Stars: ✭ 39 (-51.25%)
Mutual labels:  korean, hangul
KoreanTextMatcher
한글 음절 근사 매칭/초성 검색 라이브러리
Stars: ✭ 39 (-51.25%)
Mutual labels:  korean, hangul
NavilIME
Windows Hangul (Korean) Input Method Editor based on TSF
Stars: ✭ 79 (-1.25%)
Mutual labels:  korean, hangul
hanspell
(주)다음과 부산대학교 인공지능연구실/(주)나라인포테크의 웹 서비스를 이용한 한글 맞춤법 검사기.
Stars: ✭ 72 (-10%)
Mutual labels:  korean, hangul
hangul-online
Hangul fonts storage and viewer
Stars: ✭ 16 (-80%)
Mutual labels:  korean, hangul
gksdud
A tiny JavaScript utility that corrects miswritten Hangeul sentences like gksdud
Stars: ✭ 28 (-65%)
Mutual labels:  korean, hangul
Tinytyper
⌨️ A tiny library for creating a typing effect on specified text element.
Stars: ✭ 173 (+116.25%)
Mutual labels:  typing
KoSpacing
Automatic Korean word spacing with R
Stars: ✭ 76 (-5%)
Mutual labels:  korean
Ghosttypewriter
👻 A UILabel subclass that adds a typewriting animation effect
Stars: ✭ 159 (+98.75%)
Mutual labels:  typing
Typeshed
Typeshed contains external type annotations for the Python standard library and Python builtins, as well as third party packages as contributed by people external to those projects.
Stars: ✭ 2,501 (+3026.25%)
Mutual labels:  typing
FixLanguageTypeJs
Tiny Library for fix problem of language selection in type text.
Stars: ✭ 15 (-81.25%)
Mutual labels:  typing
Supertextview
🎀 SuperTextView for Android 是一个在TextView的基础上扩展了几种动画效果的控件。
Stars: ✭ 165 (+106.25%)
Mutual labels:  typing
ark-pixel-font
Open source Pan-CJK pixel font / 开源的泛中日韩像素字体
Stars: ✭ 1,767 (+2108.75%)
Mutual labels:  korean
Turingtype
⌨️ Simple human typing effect
Stars: ✭ 137 (+71.25%)
Mutual labels:  typing
Typescript Vs Flowtype
Differences between Flowtype and TypeScript -- syntax and usability
Stars: ✭ 1,671 (+1988.75%)
Mutual labels:  typing
ibus-hanjp
An Input method that enables to write Japanese script by typing its pronunciation in Korean hangul script.
Stars: ✭ 20 (-75%)
Mutual labels:  hangul
koshort
(deprecated) 🐱 koshort is a Python package for Korean internet spoken language crawling and processing... or maybe Korean domestic cat.
Stars: ✭ 62 (-22.5%)
Mutual labels:  korean
Wpm
Typeracer-like console app for measuring your WPM
Stars: ✭ 249 (+211.25%)
Mutual labels:  typing

type-hangul

⌨️ 한글 타이핑 효과 라이브러리

https://sduck4.github.io/type-hangul/

개요

데모

윤동주, 서시

한글 두벌식 자판에서 한 글자씩 타이핑되는 과정을 보여줄 수 있는 라이브러리입니다.

설치

CDN

한글 자모음 처리에 Hangul-js를 사용하고 있습니다.

Hangul-jstype-hangul을 따로 로드하려면 아래 코드를 사용하세요.

<!-- 의존 라이브러리와 별개로 로드 -->
<script src="https://unpkg.com/hangul-js"></script>
<script src="https://unpkg.com/type-hangul@latest/dist/type-hangul.min.js"></script>

Hangul-js를 번들링한 type-hangul을 로드하려면 아래 코드를 사용하세요.

<!-- 의존 라이브러리 번들한 파일 로드 -->
<script src="https://unpkg.com/type-hangul"></script>

직접 다운로드

GitHub Releases에서 최신 릴리즈를 직접 다운로드 받아 사용하실 수 있습니다.

사용법

<div id="target">안녕하세요.</div>
<script>
    TypeHangul.type('#target');
</script>

TypeHangul.type(selector [, options])

  • selector: 타이핑 효과를 출력할 DOM의 CSS Selector, 필수
  • options: 효과 옵션, 생략 가능

옵션

text

  • 타입: string
  • 기본값: null

출력할 텍스트를 설정합니다. 설정하지 않을 경우, selector로 선택한 DOM의 텍스트를 출력합니다.

append

  • 타입: boolean
  • 기본값: false

기존 텍스트 뒤에 이어서 출력할 지 여부를 설정합니다. true로 설정할 경우, selector로 선택한 DOM의 텍스트 뒤에 이어서 출력합니다.

intervalType

  • 타입: number
  • 기본값: 120

타이핑 사이 시간 간격을 설정합니다.

humanize

  • 타입: number|function
  • 기본값: null

실제 사람이 타이핑하는 것처럼 매 타이핑 마다 intervalType를 랜덤화합니다.

number을 설정할 경우, 해당 비율만큼 intervalType을 랜덤화합니다. 예를 들어, 다음과 같은 옵션인 경우

{
    intervalType: 100,
    humanize: 0.5,
}

intervalType은 원래 값의 0.5배인 50부터 1.5배인 150 사이의 랜덤한 값으로 설정됩니다.

function을 설정한 경우, 해당 함수를 사용해 intervalType을 랜덤화합니다. 함수의 첫 번째 매개변수로 intervalType 값이 주어집니다.

이벤트

타이핑 진행 과정에 따라 selector로 선택된 DOM에 이벤트(CustomEvent)를 발생시킵니다. 이벤트 리스너의 첫 번째 매개변수 edetail로 이벤트 데이터를 전달합니다.

<div id="target">타이핑</div>
<script>
    var $target = document.querySelector('#target');
    $target.addEventListener('th.afterType', function (e) {
        console.log(e.detail.progress);
    });
    TypeHangul.type('#target');
</script>
ㅌ
타
탕
타이
타잎
타이피
타이핑

th.startType

  • target: 타이핑 효과 대상 DOM
  • options: type() 호출 시 옵션과 기본 옵션을 합친 객체

타이핑을 시작할 때 발생합니다.

th.startType 이벤트는 type() 호출 직후에 이벤트가 발생합니다. 이벤트 리스너가 정상적으로 동작하기 위해서는 type() 호출 이전에 리스너를 추가하세요.

th.endType

  • target: 타이핑 효과 대상 DOM
  • options: type() 호출 시 옵션과 기본 옵션을 합친 객체

타이핑을 종료할 때 발생합니다.

th.beforeType

  • target: 타이핑 효과 대상 DOM
  • options: type() 호출 시 옵션과 기본 옵션을 합친 객체
  • progress: 현재까지 출력한 타이핑 텍스트
  • typeChar: 이번에 타이핑할 문자

매번 타이핑 이전에 발생합니다.

th.afterType

  • target: 타이핑 효과 대상 DOM
  • options: type() 호출 시 옵션과 기본 옵션을 합친 객체
  • progress: 현재까지 출력한 타이핑 텍스트
  • typeChar: 이번에 타이핑한 문자

매번 타이핑 이후에 발생합니다.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].