Comments (6)
I added a complete example to the docs.
from react-verification-input.
Depends on what you mean by "blinking cursor":
- If you mean a native cursor: This is not possible since the visible part of the component is not acutally an input element.
- If you mean the selected field indicator: You can make it blink using a css animation like so:
.character--selected {
animation: blink 1s infinite;
}
@keyframes blink {
0% {
outline: orange 3px solid;
}
50% {
outline: orange 3px solid;
}
51% {
outline: none;
}
100% {
outline: none;
}
}
from react-verification-input.
Thanks I've figured it out using a similar solution
from react-verification-input.
@broodfusion were you able to make this look like a real cursor?
from react-verification-input.
The example doesn't properly align the baseline of the character and the blinker...
from react-verification-input.
It's an example to use as a starting point.
Feel free to adapt the values, as they depend on the concrete typeface, etc.
That's also why this is not built into the library.
from react-verification-input.
Related Issues (20)
- Fix broken github status badge
- Error when building in vite app HOT 5
- Add `onComplete` optional prop HOT 4
- Edge Browser Hide Password Toggle
- Needs ability to style the `vi__wrapper` div HOT 12
- OTP Autocomplete issue (Safari) HOT 2
- Can support the function of copying and pasting shortcut keys? HOT 2
- how to disable input during validation? HOT 2
- Make demo/docs website
- Move migration guide to docs website
- Add support for right-click and pasting code HOT 9
- Fix "mobile zoom" not working like regular input fields
- Meta tag info (README): make sure this is up to date and consider removing user-scalable=no
- disable spell check HOT 1
- broken input styles HOT 1
- adding custom class names should not remove default class names HOT 1
- Manually selecting one of the fields HOT 1
- Can't type or paste this code: 008003 HOT 2
- Add caret HOT 3
- enable syntax highlighting on docs website
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-verification-input.