chatgpt-typewriter-cursor
v1.0.0
Published
This package gives a effect like a chatgpt cursor
Downloads
2
Maintainers
Readme
Chatgpt-typewriter-cursor
chatgpt-typewriter-cursor
is a lightweight and customizable typewriter cursor animation package for web applications. It provides an easy way to add typewriter cursor effects just like chatgpt cursor to text elements, enhancing the user experience and engagement on your website or web app.
Example
import React from 'react'
import TypewriterCursor from 'chatgpt-typewriter-cursor';
function MyComponenet(){
const [text,setText] = useState("");
return(
<>
<TypewriterCursor(
text,
speed: 25,
blinking:true,
cursorChar: '|',
bgColor:'white'
cursorColor: '#ff0000'
/>
</>
)};
Notes:-
- Text:-> Pass the string content.
- speed:-> Less value gives high speed.
- blinking:-> It's a boolean value.
- cursorChar:-> We can pass the our customizable cursor.(Exp.-'|','😃','😂','❤️',.... )
- bgColor:-> It add backgroud color of div of redered content.
- cursorColor:-> You can pass your color to cursor.
Keywords
CursorAnimation, TypewriteEffect, customizable cursor