How to create a typing text animation in Squarespace // Squarespace CSS Tutorial

Just getting started with Squarespace CSS? Awesome! ๐Ÿ˜ I want to teach you the basics โ€“ grab my free Getting Started Guide here ๐Ÿ‘‰ https://insidethesquare.co/learn
โ€”
๐Ÿฅณ Ready to launch ? Use the code PARTNER10 for 10% off (affiliate code): https://insidethesquare.co/partner10
โ€”
๐Ÿ’• Love this free Square space tutorial? You can donate via Paypal to help support my YouTube Channel https://www.paypal.com/paypalme/insidethesquare

This tutorial was recorded in my 7.1 demo site but also works for older versions of Squarespace.
โ€”
This tutorial will show you how to create a typing text effect in Squarespace, where a block of text will appear to be typed onto the page after it loads. A few important things to note before you copy and paste this into your own site:

+ This will work in any version of Squarespace, 7, 7.1, and even older sites built on Squarespace 5.
+ There is more than one way to do this! This is just one approach of many because code is super customizable.
+ Get creative with the font itself using some CSS! I have a few examples of codes for color, bold font styles, but get creative here ๐Ÿ™‚
+ Youtube wonโ€™t allow those greater-than/less-than/angled brackets in a YouTube description, and those are key for steps one and three! If you canโ€™t see the code in the video, you can copy it right out of my blog post at https://insidethesquare.co/squarespace-tutorials/typing-text

Alrighty, thatโ€™s it for the good-to-know info! Steps and codes from the demo are below. If you need any help along the way, visit insidethesquare.co/code-help
โ€”

Step One: Add a code block to your site with the sentence you want to feature, like this example here.
(left angle bracket)div class=โ€typeitโ€(right angle bracket)HERE IS AN EXAMPLE OF SOME TYPING TEXT(left angle bracket)/div(right angle bracket)

Step two: Navigate to your Custom CSS (Design โ€“ Custom CSS) and paste this code below
.typeit {
overflow: hidden;
font-size:25px; /* this can be any font size you want */
border-right: 2px solid #50bdb8; /* change this color in the keyframe too */
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: #50bdb8; /* change this in the css above too */ }
}

Optional Step Three: Customize your code with some CSS! You can change the font family, color, size, style and more using some code. If you want to change the font color and thickness, add this after your first curly bracket {
color:red; font-weight:bolder;

Want to change the font size on mobile? Add this line to your custom CSS and change the value to the font size you want to use on any screen smaller than 640px in width:
@media only screen and (max-width: 640px){ .typeit { font-size:25px!important; }}

โ–ธโ–ธโ–ธ Ready for more codes?
The codes in this tutorial are just the beginning of all the cool things you can do with Custom CSS! When youโ€™re ready to dive in and start customizing, you can use codes from my CSS Cheat Sheet. It has over 30 pages of code snippets and pro tips to help you get started. Download your copy at https://InsideTheSquare.co/css
โ€”
The term โ€œSquarespaceโ€ is a trademark of Squarespace, Inc. This content is not affiliated with Squarespace, Inc. I just really love their platform โ™ฅ
โ€”
#squarespace #squarespacecss #howto #customizesquarespace #css #squarespacetricks #squarespacehacks #anchorlinks #squarespacetips

You May Also Like