• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
rahmanzeb.com

rahmanzeb.com

Rahman Zeb's Portfolio & Blog

  • Home
  • About
  • Tutorials
    • Google Sites Tutorials
    • WordPress Tutorials
    • CSS Tutorials
  • Templates
    • Google Sites Templates
  • Portfolio
  • Hire me!
  • Contacts

How to add typing text effect in Google Sites

06/07/2022 By Rahman Zeb 6 Comments

Typing text effect is used in a lot of modern looking websites and it really catches user attention. I personally love it and I thought it would be a good idea to somehow implement this typing text effect in google sites. Since I know most of the google sites users are not expert in coding and are looking for easy solutions that’s why I’ll do my best to keep things easy to follow and easy to implement. So here is how you can achieve this typing text effect in google sites:

There are two ways to implement the typing text effect in google sites. First one is to create a div and then create paragraphs inside it and then all those paragraph will be typed in the sequence they are created in. The second one is create a text like “I Love ” and then followed by a few strings or text like Google Sites, WordPress & React etc. I will show you how to create both.

Typing Text effect on a DIV with nested P elements

Do you love Google Sites?

I Love Google Sites too.

<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>

<style>
span { color: #fff !important; text-align: center; font-size: 40px; }
* { max-width: 100vw; max-height: 100vh; }
</style>

<div id="typed-strings">
  <p>Do you love <strong>Google Sites</strong>?</p>
  <p>I <em>Love</em> Google Sites too.</p>
</div>
<span id="typed"></span>

<script>
  var typed = new Typed('#typed', {
    stringsElement: '#typed-strings',
    typeSpeed: 50,
    backSpeed: 50,
    loop: true,
    backDelay: 700
  });
</script>

Just change the text inside P element which is wrapped in a DIV tag with an ID of typed-strings and you are done. If you wanted to add new line just add a P tag just like the one I have created and put your text inside the P tags. You can use strong and em tags to change the appearance of the text. You can even use inline styling to change the colour, font-size, padding and margins etc of the text.

Typing Text effect on certain words or strings within a Paragraph

I Love

<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<style>
* {max-width: 100vw; max-height: 100vh; }
</style>

<h3 style="color:#fff;font-size: 36px">I Love <span id="typed" style="color: #65ffea"></span> Tutorials.</h3>

<script>
  var typed = new Typed('#typed', {
    strings: ["Google Sites!", "Wordpress!", "React!"],
    typeSpeed: 50,
    backSpeed: 50,
    backDelay: 700,
    loop: true
  });
</script>

Just change the text “I Love ” and ” Tutorials” to whatever you like. And for the typing text or animated text just change the text inside square brackets [“Google Sites!”, “WordPress!”, “React!”] to whatever you like. If you wanted to increase or decrease the typing speed, the deletion speed then increase or decrease values next to typeSpeed: and backSpeed: respectively. And if you want a little delay after the typing just increase the value next to backDelay. And set the loop false if you wanted to play the typing text animation once or set it true if you want it to play forever.

How to change the font of the Typing Text

I Love

<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Mystery+Quest&amp;family=Questrial&amp;display=swap" rel="stylesheet">
<style>
* {max-width: 100vw; max-height: 100vh; }
</style>

<h3 style="color:#fff;font-size: 36px;font-family: Questrial;">I Love <span id="typed" style="color: #65ffea;font-family: 'Mystery Quest';"></span> Tutorials.</h3>

<script>
  var typed = new Typed('#typed', {
    strings: ["Google Sites!", "Wordpress!", "React!"],
    typeSpeed: 50,
    backSpeed: 50,
    backDelay: 700,
    loop: true
  });
</script>

Some people in the comments on my youtube channel were asking about how to change the font of the typing text effect. Here is the updated code that show you how to change the font of the typing text effect. Simply get the font embed code from Google Fonts and place it at the top of the code as shown in the example above.

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Mystery+Quest&amp;family=Questrial&amp;display=swap" rel="stylesheet">

Then simply apply the font to a specific tag like p, a, li, etc or as a whole using * to select everything. As you can see I have applied Questrial font on the h3 tag using inline styling

<h3 style="color:#fff;font-size: 36px;font-family: Questrial;">

and Mystery Quest font on the text with the typing text effect.

<span id="typed" style="color: #65ffea;font-family: 'Mystery Quest';"></span>

Share this:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on LinkedIn (Opens in new window) LinkedIn

Filed Under: Google Sites Tutorials

About Rahman Zeb

Rahman Zeb is a passionate freelance web designer and developer and loves creating awesome and interactive websites. Beside Web design and development he loves to play cricket and badminton with his friends.

Reader Interactions

Comments

  1. Fatin Ismail says

    14/10/2023 at 6:29 am

    hai, how can i changed the text animation ?

    Reply
  2. Dyo says

    11/01/2023 at 6:49 am

    how do you center the text?

    Reply
    • Rahman Zeb says

      16/06/2023 at 11:10 am

      simply use text-align:center on the enclosing div.

      Reply
      • Namya says

        26/06/2023 at 10:12 am

        I tried that but it doesn’t center

        Reply
  3. Redwan Mridha says

    10/08/2022 at 5:46 pm

    Sir can you tell me how can I change fonts? I don’t know any basics of HTML or such but trying to make my Google site much advance. This code if yours helped me a lot to be honest as I was searching for the exact effect. But the font it has doesn’t align with my theme and I want to use a font from Google Fonts (Font: Questrial).

    Thank you so much!

    Reply
    • Rahman Zeb says

      03/09/2022 at 10:20 pm

      Hey Buddy,

      I have updated the code and now you can see the section about how to change the font of the typing text.

      Thanks,
      Rahman Zeb

      Reply

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Hire Me

zebkhan
Fiverr
Seller
I'm web designer and developer and an expert in languages like html, css, javascript, php & mysql. I also know Joomla & Wordpress and have designed and developed dozens of sites. Most of the sites I have designed were responsive.

Follow Me

  • Facebook
  • X
  • Google
  • LinkedIn
  • Pinterest

Top Posts & Pages

  • How to add click to Call button in google sites
    How to add click to Call button in google sites
  • Make an image scroll from top to bottom on hover
    Make an image scroll from top to bottom on hover
  • Google Sites Templates
    Google Sites Templates

Main Menu

  • Home
  • About
  • Tutorials
    • Google Sites Tutorials
    • WordPress Tutorials
    • CSS Tutorials
  • Templates
    • Google Sites Templates
  • Portfolio
  • Hire me!
  • Contacts

Footer

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 239 other subscribers

Recent Posts

  • How to add typing text effect in Google Sites
  • Top 3 Custom Forms you can use in Google sites instead of google forms for free
  • Add click to chat on WhatsApp & facebook buttons or links in google sites
  • How to add video background in Google Sites
  • Make an image scroll from top to bottom on hover

Best Web Hosting

BlueHost SiteGround iPage Godaddy

Created with Genesis Framework on Wordpress and hosted by BlueHost

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT