Giter Club home page Giter Club logo

react-typed's People

Contributors

amytych avatar dependabot[bot] avatar ssbeefeater avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-typed's Issues

Add support for typescript

I am getting the following error when trying to use it in a React JS project with Typescript

Module not found: Can't resolve 'react-typed'

How to centre the react typed string?

Hey there! cheers for such an amazing repo!

I would like to know how we are supposed to centre react typed string, I am providing CSS and inline style object but no desired result.

`this.typed` with TypeScript

Hey,

I'm puzzled by how to make this.typed.* work with TypeScript, do you have any examples? I think types are missing for these.

Getting these errors:

The containing arrow function captures the global value of 'this'.ts(7041)

Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.ts(7017)

Frequent freezing on Safari

Typing will freeze in the middle of a string, and the cursor will continue to flash for the typing duration. When it finishes processing the string, the entire string will flash briefly, then continue with the next. In the example below, two strings display properly, and the third has the issue.
IMG_0835

Support for react 18

Using npm version 9.5.1
Using node version v19.8.1
Using react version 18.2.0
Trying to install in project I am met with this error.
Workaround is:
Downgrade react version - npm install react@^16.3.0 or --force

HasmH@HasmH-MacBook-Pro myproject % npm i react-typed
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"^18.2.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.3.0" from [email protected]
npm ERR! node_modules/react-typed
npm ERR!   react-typed@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /Users/hasmh/.npm/_logs/2023-05-01T12_54_14_773Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/hasmh/.npm/_logs/2023-05-01T12_54_14_773Z-debug-0.log

Is this project dead?

With the latest release over 2 years ago, I'm wondering whether this project is still active or should be forked and continued somewhere else?

Breaks styling

Hi for some reason this version is breaking all of my styling when i add to banner below i have attached images to show what i am talking about
screenshot from 2018-08-09 00-58-57
screenshot from 2018-08-09 00-59-04
screenshot from 2018-08-09 00-59-16

thank you for reading and helping with this issue(:

Typescript Support

It appears there are no type definitions for react-typed, is this something planned for a future release?
If I'm mistaken and there are type definitions, could you point me in the correct direction?

WebpackError: ReferenceError: window is not defined

The build process of my Gatsby app fails with the following error under react-typed 1.1.1:

10:22:05 AM:   2 | /*!
10:22:05 AM:   3 |  *
10:22:05 AM:   4 |  *   typed.js - A JavaScript Typing Animation Library
10:22:05 AM: 
10:22:05 AM:   WebpackError: ReferenceError: window is not defined
10:22:05 AM:   
10:22:05 AM:   - react-typed.js:1 Object../node_modules/react-typed/dist/react-typed.js
10:22:05 AM:     [lib]/[react-typed]/dist/react-typed.js:1:343
10:22:05 AM:   
10:22:05 AM:   - bootstrap:19 __webpack_require__
10:22:05 AM:     lib/webpack/bootstrap:19:1
10:22:07 AM: failed during stage 'building site': Build script returned non-zero exit code: 1

Locking it to 1.1.0 builds without any problems.

Animation breaks when there is a "&" in keyword/sentence.

I have noticed that animation not fully completing if there is a "&" (special character) inside the string/keyword/sentence.

Resolved:
I randomly tried by replacing with text "and" instead of "&" which resolved my strange issue.

Hope it finds helpful to someone.

Change the cursor color

Is it possible to change the cursor color, so that the cursor has a different color than the rest of the sentence?

Prevent complete destroy

Hello and thank you for creating this package, it's worked great so far. Currently I am trying to use it to render a series of strings that all start with the same letter and loop continuously. It does as I would expect through the array and only backspaces to the first letter, then continues the cycle. On the end of the array it completely backspaces and starts over new, which makes sense, but I was wondering if there was a workaround for this? I would like the first letter to always be there, even at the end of the loop. For my use case it would look better and prevent height issues. Is there a way to do this?

Cannot read properties of undefined within react-type.js

When I follow the instructed on correct from after restarting my react dev system; I'm running into a issue that it's a Uncaught TypeError: Cannot read properties of undefined (reading 'length') within the react-type.js.

1. Do you have any suggestions? That could help.

Add startDelay on each element of loop

When animating elements of an array using a loop, startDelay works only for the first element. How can it work for each element of the loop?

<Typed
                            strings={words}
                            typeSpeed={100}
                            backSpeed={60}
                            backDelay={500}
                            startDelay={300}
                            loop >
                            <span style={{ color: "red", fontSize: "3.5rem" }} />
                        </Typed>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.