Jump to content

Edit typing text code & edit blinking insertion point line

Recommended Posts

Site URL: https://www.amandachung.ca/

Hello!

Just wondering how I can change the blinking insertion point line to end where the text ends and not all the way on the far right of the frame. (I figured out how to center the text but I'm not sure how I can make the blinking bar end where the text ends.)

____________________________________________________

CODE (CODE BLOCK):

<div class="typeit">I’m Amanda!</div>

____________________________________________________

CODE (IN CUSTOM CSS):

.typeit {color:black; font-weight:bold; text-align:center; 
  overflow: hidden; 
  font-size:45px;

  border-right: 3px solid #000000;

  white-space: nowrap; 
  margin: 0 auto; 
  animation: 
    typeit 3.5s steps(40, end),
    right-border .5s step-end infinite;
}

@keyframes typeit {  
from { width: 0 }
to { width: 100% }
}

@keyframes right-border {
from, to { border-color: transparent }
50% { border-color: #000000; }
}

____________________________________________________

Password to my site is: amanda

Thank you! 🙂

Edited by amchu
Link to comment
  • amchu changed the title to Edit typing text code & edit blinking insertion point line
  • Replies 4
  • Views 537
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 5/8/2022 at 1:29 PM, amchu said:

Site URL: https://www.amandachung.ca/

Hello!

Just wondering how I can change the blinking insertion point line to end where the text ends and not all the way on the far right of the frame. (I figured out how to center the text but I'm not sure how I can make the blinking bar end where the text ends.)

____________________________________________________

CODE (CODE BLOCK):

<div class="typeit">I’m Amanda!</div>

____________________________________________________

CODE (IN CUSTOM CSS):

.typeit {color:black; font-weight:bold; text-align:center; 
  overflow: hidden; 
  font-size:45px;

  border-right: 3px solid #000000;

  white-space: nowrap; 
  margin: 0 auto; 
  animation: 
    typeit 3.5s steps(40, end),
    right-border .5s step-end infinite;
}

@keyframes typeit {  
from { width: 0 }
to { width: 100% }
}

@keyframes right-border {
from, to { border-color: transparent }
50% { border-color: #000000; }
}

____________________________________________________

Password to my site is: amanda

Thank you! 🙂

Can you take some screenshot of it?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
On 5/9/2022 at 6:53 AM, bangank36 said:

Can you take some screenshot of it?

Yes! Please see the attached image and I've drawn an arrow at the blinking insertion point line.

 

I want the line to end where the text ends and not all the way to the far right of the page.

Screen Shot 2022-05-11 at 3.09.20 PM.png

Link to comment
On 5/12/2022 at 5:11 AM, amchu said:

Yes! Please see the attached image and I've drawn an arrow at the blinking insertion point line.

 

I want the line to end where the text ends and not all the way to the far right of the page.

Screen Shot 2022-05-11 at 3.09.20 PM.png

Add to Design > Custom CSS

/* Fix animation text */
.typeit {
    display: inline-block;
}
div#block-yui_3_17_2_1_1651990432053_5999 div {
    margin: 0 auto;
    text-align: center;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 5/14/2022 at 8:00 PM, tuanphan said:

Add to Design > Custom CSS

/* Fix animation text */
.typeit {
    display: inline-block;
}
div#block-yui_3_17_2_1_1651990432053_5999 div {
    margin: 0 auto;
    text-align: center;
}

 

Thank you! This kind of fixed the problem, but now it would just type and blink all the way to the same edge, then glitch and appear right next to the text.

Wondering if there's any way to fix that?

Not sure if you're able to access/see it by inputting the password and taking a look at the "About" section to see the issue.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.