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

GrapesJS Typed component made by wrapping Typed.js library

License

NotificationsYou must be signed in to change notification settings

GrapesJS/components-typed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GrapesJS Typed component made by wrapping Typed.js library

DEMO

Screenshot

Summary

  • Plugin name:grapesjs-typed

  • Components

    • typed - Main component
    PropDescriptionDefault
    stringsStrings to be typed[]
    type-speedType speed in milliseconds0
    start-delayTime before typing starts in milliseconds0
    back-speedBackspacing speed in milliseconds0
    smart-backspaceOnly backspace what doesn't match the previous stringtrue
    back-delayTime before backspacing in milliseconds700
    fade-outFade out instead of backspacefalse
    fade-out-classCSS class for fade animationtyped-fade-out
    fade-out-delayFade out delay in milliseconds500
    show-cursorShow cursortrue
    cursor-charCharacter for cursor|
    auto-insert-cssInsert CSS for cursor and fadeOut into HTML<head>true
    bind-input-focus-eventsBind to focus and blur if el is text inputfalse
    content-type'html' or 'null' for plaintexthtml
    loopLoop stringsfalse
    loop-countAmount of loopsInfinity
    shuffleShuffle the stringsfalse
  • Blocks

    • typed - Main block
  • Traits

    • typed-strings - Textarea input to handle strings (one string per row)

Options

OptionDescriptionDefault
scriptLibrary to load asynchronously in caseTyped is not foundCDN
blockObject to extend the default block
eg.{ label: 'Typed', ... }
Pass a falsy value to avoid adding the block
{}
propsCustomize component's props. The final object should be returned from the functionprops => props

Download

  • CDN
    • https://unpkg.com/grapesjs-typed
  • NPM
    • npm i grapesjs-typed
  • GIT
    • git clone https://github.com/artf/grapesjs-typed.git

Usage

Directly in the browser

<linkhref="https://unpkg.com/grapesjs/dist/css/grapes.min.css"rel="stylesheet"/><scriptsrc="https://unpkg.com/grapesjs"></script><scriptsrc="path/to/grapesjs-typed.min.js"></script><divid="gjs"></div><scripttype="text/javascript">consteditor=grapesjs.init({container:'#gjs',// ...plugins:['grapesjs-typed'],pluginsOpts:{'grapesjs-typed':{/* options */}}});</script>

Modern javascript

importgrapesjsfrom'grapesjs';importpluginfrom'grapesjs-typed';import'grapesjs/dist/css/grapes.min.css';consteditor=grapesjs.init({container :'#gjs',// ...plugins:[plugin],pluginsOpts:{[plugin]:{/* options */}}// orplugins:[editor=>plugin(editor,{/* options */}),],});

Development

Clone the repository

$ git clone https://github.com/artf/grapesjs-typed.git$cd grapesjs-typed

Install dependencies

$ npm i

Start the dev server

$ npm start

Build the source

$ npm run build

License

MIT

About

GrapesJS Typed component made by wrapping Typed.js library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2026 Movatter.jp