Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A custom element that shows text as if it were being typed

License

NotificationsYou must be signed in to change notification settings

github/typing-effect-element

Repository files navigation

A custom element that shows text as if it were being typed

Installation

$ npm install @github/typing-effect-element

Usage

import'@github/typing-effect-element'
<typing-effectdata-lines='["Welcome to GitHub!", "Let’s begin the adventure"]'><spandata-target="typing-effect.content"></span><spandata-target="typing-effect.cursor">|</span></typing-effect>

Accessibility

This component detects whetherprefers-reduced-motion is set on the window:

window.matchMedia('(prefers-reduced-motion)').matches===true

If this evaluates to true, any content lines provided will be appended immediately rather than being typed out with a delay.

Browser support

Browsers without nativecustom element support require apolyfill.

  • Chrome
  • Firefox
  • Safari
  • Microsoft Edge

Development

npm installnpm test

License

Distributed under the MIT license. See LICENSE for details.

About

A custom element that shows text as if it were being typed

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors7


[8]ページ先頭

©2009-2025 Movatter.jp