Comments (3)
hi @madshargreave thanks for reporting this. I have actually been able to reproduce this, only on chrome, and it's driving me nuts. I think I'll have a fix for this soon. Sorry for the late reply!
from react-typist.
Hi @madshargreave , this is actually a different issue from what I thought! The problem is that by default headings are display: block
, so you need to change the heading's display to something like inline-block
for the cursor to display correctly next to it. Or you could also do @jch254's solution.
Thanks!
from react-typist.
@madshargreave how are you using the component?
I was able to get it working with headings by using something like:
<Heading size={1} big>
<Typist avgTypingSpeed={40} startDelay={1000} cursor={{ hideWhenDone: true }}>
Wassup
</Typist>
</Heading>
from react-typist.
Related Issues (20)
- A11y Concerns
- dist/Typist.css is missing
- How to set default text (not animated) HOT 3
- Backspace speed prop
- curso for block element doesn't work properly HOT 2
- str.match is not a function HOT 1
- Cursor animation not working with react-syntax-hightlight
- unable to resolve dependency tree HOT 1
- broken code block in README.md
- React 18 support HOT 15
- update documentation (dynamic content)
- Just Covert to a component
- HTLM parsing not happening if the dynamic content has html tags
- React Typist does not work with Vite ? [solved] HOT 2
- No support for react HOT 1
- "Error: 'Super expression must either be null or a function' in Typist.js" HOT 1
- [CURSOR NOT WORK] - only single line
- Warning: Please update the following components: Cursor HOT 2
- Cursor Color? HOT 1
- typist with [email protected] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-typist.