Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- const input = document.getElementById('input')
- const cursor = document.createElement('span')
- cursor.id = 'cursor'
- input.after(cursor)
- </script>
- <style>
- @keyframes cursor {
- 50% {
- opacity: 0;
- }
- }
- #cursor {
- animation: cursor 1s linear infinite;
- display: block;
- position: absolute;
- padding: 1rem;
- bottom: 0;
- font-size: 2rem;
- pointer-events: none;
- }
- #cursor:after {
- content: '_';
- }
- </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement